AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual MgFeatureReader* MgSelectionBase::GetSelectedFeatures ( MgLayerBase layer,
CREFSTRING  className,
MgStringCollection propertyNames 
) [virtual]

Returns the selected feature data for the specified feature class.

.NET Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, string className, MgStringCollection propertyNames);
Java Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, String className, MgStringCollection propertyNames);
PHP Syntax
MgFeatureReader GetSelectedFeatures(MgLayerBase layer, string className, MgStringCollection propertyNames);

Parameters:
layer (MgLayerBase) Input layer.
className (String/string) Input feature class name.
propertyNames (MgStringCollection) Properties to return for selected features.
Returns:
Returns a feature reader containing all the features for the given feature class in this selection.
Note:
This method is provided to obtain feedback from customers. In future releases it may change in functionality or be deprecated.