This method returns the feature geometries type (i.e., point, line or polygon features) in a layer.
HRESULT GetFeatureType(
[out, retval] BSTR* LayerType)
Parameters:
LayerType – A string that reports the features type. The LayerType can be one of the following:
“Polyline”
“Polygon”
“Point”
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. |