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

ILayerDescription.SelectionFeatures Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILayerDescription Interface > ILayerDescription.SelectionFeatures Property
ArcGIS Developer Help

ILayerDescription.SelectionFeatures Property

Array of selected features.

[Visual Basic .NET]
Public Property SelectionFeatures As IFIDSet
public IFIDSet SelectionFeatures {get; set;}
HRESULT get_SelectionFeatures(
  IFIDSet** FeatureIDs
HRESULT put_SelectionFeatures(
  IFIDSet* FeatureIDs
FeatureIDs [out, retval]

FeatureIDs is a parameter of type IFIDSet** FeatureIDs [in]
FeatureIDs is a parameter of type IFIDSet*

Product Availability

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


If you want to clear the selection, set SelectionFeatures to Null/Nothing. If you forget to do this, the previous selection will be added to the current selection.

See Also

ILayerDescription Interface