Use this method to restrict the values returned by a select operation to be unique.
Example (PHP)
GroupName is a string property. Feature instances in the datastore have a GroupName property value of either 'Group1', 'Group2', or 'Group3'. To verify this fact, use the following select operation.
<?php
$aggregateOptions->SelectDistinct(true);
$aggregateOptions->AddFeatureProperty("GroupName");
$dataReader = $featureService->SelectAggregate($featureSrcResId, $className, $aggregateOptions);
$dataReader->Close();
?>
sqlplus> select distinct groupname from featclass;
Example (C#)
The feature schema contains a string property whose name is "GroupName". The value of this property for some features is "Group Name One" and for the rest "Group Name Two". The select aggregate operation with SelectDistinct set to true will select one feature from each group.