This document is archived and information here might be outdated.  Recommended version.


ILayer.Name Property (ArcObjects .NET 10.6 SDK)
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(
  System.String* 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

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

.NET Samples

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

.NET Related Topics

Adding a custom menu created in .NET to ArcGIS for Desktop | Adding a plug-in data source programmatically | Automating ArcGIS for 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 | 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