ArcObjects Library Reference (Carto)  

ILayer.Name Property

Layer name.

[Visual Basic .NET]
Public Property Name As String
[C#]
public string Name {get; set;}
[C++]
HRESULT get_Name(
  BSTR* Name
);
[C++]
HRESULT put_Name(
  BSTR Name
);
[C++]

Parameters

Name [out, retval]   Name is a parameter of type BSTR Name [in]   Name is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description


 

Remarks

Use this property to associate a string with a layer.

See Also

ILayer Interface

.NET Snippets

Load Force Element Layer | Add Graphics Layer to Globe | Get Index Number from Layer Name |

.NET Samples

3D dynamic element tracking (Code Files: TrackDynamicObject) | 3D multipatch examples (Code Files: GraphicsLayer3DUtilities) | Add a custom menu created in .NET to ArcGIS Desktop (Code Files: AddShapefile) | Add a traversal result to the map (Code Files: AddTraversalResultsToMap) | Automate ArcGIS Desktop applications (Code Files: Form1) | Buffer snap agent (Code Files: EditingForm) | Closest facility solver (Code Files: frmClosestFacilitySolver) | Create a custom selection extension by extending ArcObjects (Code Files: SelectionExtension) | Create a geoprocessing tool to buffer a layer and retrieve messages (Code Files: BufferDlg) | Create camera flyby from path (Code Files: frmCameraPath) | Creating a toolbar of globe tools (Code Files: TableOfContents) | Custom reshape polyline edit task (Code Files: EditingForm) | Custom selection extension (Code Files: SelectionExtension) | Custom vertex editing commands (Code Files: EditingForm) | Cut polygons without selection edit task (Code Files: EditingForm) | Displaying MOLE symbology with the GlobeControl (Code Files: MainForm) | Dynamic cache layer manager controller (Code Files: CacheManagerDlg) | Edit event listener (Code Files: EditingForm) | Executing geoprocessing tools in the background (Code Files: RunGPForm) | Graphics layers ToolControl (Code Files: GraphicsLayersListCtrl) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Managing snap agents (Code Files: EditingForm) | Multivariate renderer (Code Files: PropPageForm) | Network Analyst Engine application (Code Files: frmLoadLocations frmNALayerProperties) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Retrieve a color ramp from the SymbologyControl (Code Files: ColorRamps) | Schematic diagram auto refresh (Code Files: FormAutorefresh) | Service area solver (Code Files: frmServiceAreaSolver) | Simple point plug-in data source (Code Files: OpenSimplePointDlg) | Temporal statistics (Code Files: MainForm) | Updating the purge rule on a real-time temporal layer (Code Files: PurgeRuleForm) | Vehicle routing problem solver (Code Files: frmVRPSolver) | View CAD data in a MapControl (Code Files: CADView) | Visualizing the camera path while animating (Code Files: VisualizeCameraPath) |

.NET Related Topics

Adding a custom menu created in .NET to ArcGIS Desktop | Adding a plug-in data source programmatically | Automating the ArcGIS Desktop applications | Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | Converting labels to map annotation for a single layer | DefenseSolutions | How to access maps and layers via the MapDocument | How to access maps and layers via the MxDocument | How to add different types of layers to a map | Location | Utility COM objects |