ColumnSet ColumnSet ColumnSet ColumnSet Class

Definition

Specifies the attributes for which non-null values are returned from a query.

For the Web API the corresponding type is ColumnSet ComplexType.

public ref class ColumnSet sealed : System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Name="ColumnSet", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
public sealed class ColumnSet : System.Runtime.Serialization.IExtensibleDataObject
type ColumnSet = class
    interface IExtensibleDataObject
Public NotInheritable Class ColumnSet
Implements IExtensibleDataObject
Inheritance
ColumnSetColumnSetColumnSetColumnSet
Attributes
Implements

Remarks

The ColumnSet class is used with methods and messages that retrieve one or more records from the database. The query returns non-null values for the attributes that are contained in the Columns property. The attributes not included in the ColumnSet will contain null values. If the column set includes attributes that are not valid for retrieve, they will be ignored and no values will be returned for those attributes.

The primary key is always returned and contains a non-null value.

Attributes are specified by name. For more information, see SchemaName.

Constructors

ColumnSet() ColumnSet() ColumnSet() ColumnSet()

Initializes a new instance of the ColumnSet class.

ColumnSet(Boolean) ColumnSet(Boolean) ColumnSet(Boolean) ColumnSet(Boolean)

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

ColumnSet(String[]) ColumnSet(String[]) ColumnSet(String[]) ColumnSet(String[])

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

Properties

AllColumns AllColumns AllColumns AllColumns

Gets or sets whether to retrieve all the attributes of a record.

Columns Columns Columns Columns

Gets the collection of Strings containing the names of the attributes to be retrieved from a query.

ExtensionData ExtensionData ExtensionData ExtensionData

Gets or sets the structure that contains extra data.

HasLazyFileAttribute HasLazyFileAttribute HasLazyFileAttribute HasLazyFileAttribute
LazyFileAttributeEntityName LazyFileAttributeEntityName LazyFileAttributeEntityName LazyFileAttributeEntityName
LazyFileAttributeKey LazyFileAttributeKey LazyFileAttributeKey LazyFileAttributeKey
LazyFileAttributeSizeLimit LazyFileAttributeSizeLimit LazyFileAttributeSizeLimit LazyFileAttributeSizeLimit
LazyFileAttributeValue LazyFileAttributeValue LazyFileAttributeValue LazyFileAttributeValue

Methods

AddColumn(String) AddColumn(String) AddColumn(String) AddColumn(String)

Adds the specified attribute to the column set.

AddColumns(String[]) AddColumns(String[]) AddColumns(String[]) AddColumns(String[])

Adds the specified attribute to the column set.

Applies to

See also