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


IMapServerObjects3.LayerID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerObjects3 Interface > IMapServerObjects3.LayerID Property
ArcGIS Developer Help

IMapServerObjects3.LayerID Property

The layer specified by the map name and layer ID. If the mapName is blank, the default map (active data frame) will be assumed.

[Visual Basic .NET]
Public Function get_LayerID ( _
    ByVal MapName As String, _
    ByVal pLayer As ILayer _
) As Integer
[C#]
public int get_LayerID (
    string MapName,
    ILayer pLayer
);
[C++]
HRESULT get_LayerID(
  BSTR MapName,
  ILayer* pLayer,
  System.Int32* ID
);
[C++]
Parameters
MapName [in]

MapName is a parameter of type BSTR pLayer [in]
pLayer is a parameter of type ILayer* ID [out, retval]
ID is a parameter of type long*

Product Availability

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

See Also

IMapServerObjects3 Interface