ArcObjects Library Reference (Carto)  

ILayerDescriptor.ID Property

The layer ID. This is a unique ID for the map, and is used to identify the layer in a number of method calls.

[Visual Basic .NET]
Public Property ID As Integer
[C#]
public int ID {get; set;}
[C++]
HRESULT get_ID(
  long* LayerID
);
[C++]
HRESULT put_ID(
  long LayerID
);
[C++]

Parameters

LayerID [out, retval]   LayerID is a parameter of type long LayerID [in]   LayerID is a parameter of type long

Product Availability

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

See Also

ILayerDescriptor Interface