Compartir a través de


QueryExpression.Distinct Property

Definition

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.

Applies to