ColumnSet Class

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

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

Namespace: Microsoft.Xrm.Sdk.Query
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)


<DataContractAttribute(Name:="ColumnSet", Namespace:="")> _
Public NotInheritable Class ColumnSet
    Implements IExtensibleDataObject
[DataContractAttribute(Name="ColumnSet", Namespace="")] 
public sealed class ColumnSet : IExtensibleDataObject


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.

Inheritance Hierarchy


Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also


ColumnSet Members
Microsoft.Xrm.Sdk.Query Namespace
ConvertQuoteToSalesOrderRequest Class
ConvertSalesOrderToInvoiceRequest Class
GenerateInvoiceFromOpportunityRequest Class
GenerateQuoteFromOpportunityRequest Class
GenerateSalesOrderFromOpportunityRequest Class
IOrganizationService.Retrieve Method
RetrieveAllChildUsersSystemUserRequest Class
RetrieveBusinessHierarchyBusinessUnitRequest Class
RetrieveMembersTeamRequest Class
RetrieveRequest Class
RetrieveSubsidiaryTeamsBusinessUnitRequest Class
RetrieveSubsidiaryUsersBusinessUnitRequest Class
RetrieveTeamsSystemUserRequest Class
RetrieveUnpublishedRequest Class
RetrieveUserSettingsSystemUserRequest Class
ReviseQuoteRequest Class
SearchByBodyKbArticleRequest Class

Other Resources

Using the ColumnSet Class
Using the QueryByAttribute Class
Using the QueryExpression Class

Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.