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




fromLayer
FeatureLayer from which to copy fields.
filter
New Filter of the constructed FeatureLayer.
buffer
New Buffer of the constructed FeatureLayer.
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 _
)
Visual Basic (Usage)Copy Code
Dim fromLayer As FeatureLayer
Dim filter As Filter
Dim buffer As Buffer
 
Dim instance As FeatureLayer(fromLayer, filter, buffer)
C# 
public FeatureLayer( 
   FeatureLayer fromLayer,
   Filter filter,
   Buffer buffer
)

Parameters

fromLayer
FeatureLayer from which to copy fields.
filter
New Filter of the constructed FeatureLayer.
buffer
New Buffer of the constructed FeatureLayer.

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.

If the layer will be added to the map's layer collection, then a unique ID must be set before the map is drawn.

See Also

© 2010 All Rights Reserved.