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




fromLayer
FeatureLayer from which to copy fields.
Constructs a FeatureLayer object from another FeatureLayer.

Syntax

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

Parameters

fromLayer
FeatureLayer from which to copy fields.

Remarks

This copies an existing FeatureLayer, including any renderer, filter and buffer. To copy a layer with no renderer or selection, see FeatureLayer(string, LayerIDDataset).

If you want to select and highlight features from an existing layer, you may find one of the CreateSelectionLayer methods more convenient.

See Also

© 2010 All Rights Reserved.