|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > GlobeCore > ESRI.ArcGIS.GlobeCore > Interfaces > IG > IGlobeServer Interface > IGlobeServer.LayerCount Property (ArcObjects .NET 10.5 SDK) | 
The number of layers in the server under a certain parent.
[Visual Basic .NET] Public Function get_LayerCount ( _ ByVal parentID As Integer _ ) As Integer
[C#] public int get_LayerCount ( int parentID );
[C++]
HRESULT get_LayerCount(
  long parentID,
  long* Count
);
[C++]
Parameters parentID [in] parentID is a parameter of type long Count [out, retval] Count is a parameter of type long