ESRI.ArcGIS.ADF.IMS
FeatureLayer Constructor(FeatureDataset)
See Also  Send Feedback
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > FeatureLayer Class > FeatureLayer Constructor : FeatureLayer Constructor(FeatureDataset)




dataset
Dataset of the constructed FeatureLayer.
Constructs a FeatureLayer object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal dataset As FeatureDataset _
)
Visual Basic (Usage)Copy Code
Dim dataset As FeatureDataset
 
Dim instance As New FeatureLayer(dataset)
C# 
public FeatureLayer( 
   FeatureDataset dataset
)

Parameters

dataset
Dataset of the constructed FeatureLayer.

Example

For an example of creating a new FeatureLayer from a new data set, see the FeatureLayer(string, FeatureDataset) constructor.

Remarks

This method enables creation of dynamic layers, which are new map layers based on spatial data not currently used in the map service. To add a new layer not yet in the map service, you must define the FeatureDataset, which specifies the name of the data layer. In the FeatureDataset you must also define the workspace, which can be an existing workspace in the map service (NamedWorkspace) or a new workspace (SdeWorkspace or ShapeWorkspace).

Dynamic layers are not supported with ArcMap image services.

If the layer will be added to the map's layer collection, then the ID of the FeatureLayer must be set.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.