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


IMapLayerInfo2.IsComposite Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMapLayerInfo2.IsComposite Property

Indicates if the layer is a composite layer.

[Visual Basic .NET]
Public ReadOnly Property IsComposite As Boolean
[C#]
public bool IsComposite {get;}
[C++]
HRESULT get_IsComposite(
  VARIANT_BOOL* IsComposite
);
[C++]

Parameters IsComposite [out, retval] IsComposite is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

Composite layers are layers composed of other layers. Composite layers include group layers, IMS layers and MapServer layers. Composite layers may also be nested. Composite (parent) layers and their members (SubLayers or child layers) are numbered according to their TOC order. Composite layers cannot be queried (QueryFeatureCount, QueryFeatureIDs, QueryFeatureData, GetFeatureData, GetFeatureValue, GetSQLSyntaxInfo). If you attempt to query a composite layer you will receive an error message stating that an input parameter is incorrect. Composite layers can be identified. You can use a parent layer ID by itself to Identify features from all member SubLayers.  However, you cannot use the parent layer ID by itself in order to query SubLayers using the GetLegendInfo, Find or QueryHyperlinks methods on IMapServer2. You need to include the SubLayers IDs in the input array.

See Also

IMapLayerInfo2 Interface