This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerObjects3 Interface > IMapServerObjects3.LayerID Property (ArcObjects .NET 10.5 SDK) |
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,
long* 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