ColumnSet Constructors
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.
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[])
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.