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




fromLayer
FeatureLayer from which to copy fields.
filter
New Filter of the constructed FeatureLayer.
buffer
New Buffer of the constructed FeatureLayer.
id
ID of the constructed FeatureLayer. This value must be unique if the constructed layer is to be added to a LayerCollection.
Constructs a FeatureLayer object from another FeatureLayer for buffering.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal fromLayer As FeatureLayer, _
   ByVal filter As Filter, _
   ByVal buffer As Buffer, _
   ByVal id As String _
)
Visual Basic (Usage)Copy Code
Dim fromLayer As FeatureLayer
Dim filter As Filter
Dim buffer As Buffer
Dim id As String
 
Dim instance As FeatureLayer(fromLayer, filter, buffer, id)
C# 
public FeatureLayer( 
   FeatureLayer fromLayer,
   Filter filter,
   Buffer buffer,
   string id
)

Parameters

fromLayer
FeatureLayer from which to copy fields.
filter
New Filter of the constructed FeatureLayer.
buffer
New Buffer of the constructed FeatureLayer.
id
ID of the constructed FeatureLayer. This value must be unique if the constructed layer is to be added to a LayerCollection.

Remarks

This method creates a new FeatureLayer with a buffer around selected features. The buffer can be either a DisplayBuffer or a SelectionBuffer. A DisplayBuffer is used to show a buffer surrounding selected features on a map image. A SelectionBuffer is used to retrieve information about features in the same layer or another layer that are within the buffer. It is not used to display the buffer.

When using a DisplayBuffer for the buffer, this method produces the same result as CreateBufferLayer. When using a SelectionBuffer, the result is the same as with CreateBufferSelectionLayer Method. See those methods for additional information and examples.

The layer ID can be any combination of alpha and numeric characters.

See Also

© 2010 All Rights Reserved.