Udostępnij za pośrednictwem


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. (Not recommended)

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. (Not recommended)

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

A Boolean that specifies whether to retrieve all columns of a record.

Remarks

We strongly discourage returning all columns in a table. Returning all columns will make your applications run slower and may cause timeout errors. You should specify the minimum number of columns to retrieve with your data.

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[]

Specifies an array of strings containing the logical names of the columns.

Applies to