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


ILayer2.Name Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILayer2.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.

Remarks

Use this property to associate a string with a layer.

See Also

ILayer2 Interface