ArcObjects Library Reference (Carto)  

ILayerFactoryHelper Interface

Provides access to members used to create layers from names.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Provides a helper method to iterate the Layer Factory component category to find a layer factory object that is used to create one or more layer objects.

Members

Description
Method CreateLayersFromName Given a name attempts to open it using the layer factories, if successful returns a layers enumerator.

CoClasses that implement ILayerFactoryHelper

CoClasses and Classes Description
LayerFactoryHelper Helper class to create layers from names.

Remarks

The CreateLayersFromName method internally iterates the objects in the "Layer Factory" component category and uses the ILayerFactory::CanCreate and ILayerFactory::Create methods to create the layers.  Numerous layer factories are registered in the "Layer Factory" component categories with all ArcGIS products.

.NET Related Topics

How to add different types of layers to a map | How to drop data onto the MapControl |