![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
FindByName(String) Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > LayerCollection Class > FindByName Method : FindByName(String) Method |
- name
- Name of layer to find.
Visual Basic (Declaration) | |
---|---|
Public Overloads Function FindByName( _ ByVal name As String _ ) As Layer |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As LayerCollection Dim name As String Dim value As Layer value = instance.FindByName(name) |
Parameters
- name
- Name of layer to find.
Return Value
The first layer in the collection with a given name, or null if no matching layer is found.Many classes in the ArcIMS Library Reference use this method to find a layer, such as FeatureLayer.CreateSelectionLayer(ESRI.ArcGIS.ADF.IMS.Geometry.Geometry, Renderer, string). See also FindByName(string, int).
This finds a layer based on its Name property. Note that the Name of the layer need not be unique. If multiple layers share the same name, this method returns the first layer found with the name. The comparison is not case sensitive.
The returned layer is of type Layer. Cast the layer to the inherited type to access its specific properties, i.e., one of FeatureLayer, ImageLayer, or AcetateLayer.
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