QueryExpression.Distinct Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether the results of the query should only contain unique values.
public:
property bool Distinct { bool get(); void set(bool value); };
[System.Runtime.Serialization.DataMember]
public bool Distinct { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.Distinct : bool with get, set
Public Property Distinct As Boolean
Property Value
true
if the results of the query should only contain unique values.; otherwise,
false
.
- Attributes
Remarks
When the Distinct
property ist true
, the results returned don't include primary key values for each record because they represent an aggregation of all the distinct values.