ColumnSet Constructors

Definition

Overloads

ColumnSet()

Initializes a new instance of the ColumnSet class.

ColumnSet(Boolean)

Initializes a new instance of the ColumnSet class setting the AllColumns property.

ColumnSet(String[])

Initializes a new instance of the ColumnSet class setting the Columns property.

ColumnSet()

Initializes a new instance of the ColumnSet class.

public:
 ColumnSet();
public ColumnSet ();
Public Sub New ()

Applies to

ColumnSet(Boolean)

Initializes a new instance of the ColumnSet class setting the AllColumns property.

public:
 ColumnSet(bool allColumns);
public ColumnSet (bool allColumns);
new Microsoft.Xrm.Sdk.Query.ColumnSet : bool -> Microsoft.Xrm.Sdk.Query.ColumnSet
Public Sub New (allColumns As Boolean)

Parameters

allColumns
Boolean

Type: Boolean. A Boolean that specifies whether to retrieve all attributes of a record.

Remarks

You should avoid retrieving all columns in a query result because of the impact on a subsequent update of records. In an update, this will set all field values, even if they are unchanged, and often triggers cascaded updates to child records.

Applies to

ColumnSet(String[])

Initializes a new instance of the ColumnSet class setting the Columns property.

public:
 ColumnSet(... cli::array <System::String ^> ^ columns);
public ColumnSet (params string[] columns);
new Microsoft.Xrm.Sdk.Query.ColumnSet : string[] -> Microsoft.Xrm.Sdk.Query.ColumnSet
Public Sub New (ParamArray columns As String())

Parameters

columns
String[]

Type: String[]. Specifies an array of Strings containing the names of the attributes.

Applies to