|
| ESRI.ArcGIS.ADF.IMS | |
| Name Property | |
| See Also Example Send Feedback | |
| ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > Layer Class : Name Property |
| Visual Basic (Declaration) | |
|---|---|
Public Overridable Property Name As String | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As Layer Dim value As String instance.Name = value value = instance.Name | |
| C# | |
|---|---|
public virtual string Name {get; set;} | |
The following example assigns a new name to an existing map layer. This code assumes an existing MapView object.
| C# | Copy Code |
|---|---|
FeatureLayer citiesLayer = (FeatureLayer) mapView.Layers.FindByName("Cities"); citiesLayer.Name = "Cities Layer"; | |
| Visual Basic | Copy Code |
|---|---|
Dim citiesLayer As FeatureLayer = CType(mapView.Layers.FindByName("Cities"), FeatureLayer) citiesLayer.Name = "Cities Layer" | |
The layer name is an alias typically used to present a user-friendly display for users. It need not be the same as the layer ID. Layer names can contain spaces.
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