IsLayer is a method that determines whether an Info Tree item is a feature layer, and returns the ItemID of the layer root group.
Supported by TerraExplorer Viewer.
HRESULT IsLayer(
[in, out] long* ItemID,
[out, retval] BOOL* bLayer)
Parameters:
ItemID – The ID of the item in question. When the method returns, this provides the ItemID of the layer root group. For example: when passing the ItemID of an “Annotations” group under a layer, the ItemID of the parent layer group is returned.
bLayer – Once the method call is returned, bLayer contains the Boolean return value that indicates whether ItemID that was passed is the ID of a feature layer.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_FAIL |
Catastrophic failure. |