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)

Syntax

'Declaration
<DataContractAttribute(Name:="ColumnSet", Namespace:="http://schemas.microsoft.com/xrm/2011/Contracts")> _
Public NotInheritable Class ColumnSet
    Implements IExtensibleDataObject
[DataContractAttribute(Name="ColumnSet", Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")] 
public sealed class ColumnSet : IExtensibleDataObject

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.

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Query.ColumnSet

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.

Platforms

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

Reference

ColumnSet Members
Microsoft.Xrm.Sdk.Query Namespace
ConvertQuoteToSalesOrderRequest Class
ConvertSalesOrderToInvoiceRequest Class
GenerateInvoiceFromOpportunityRequest Class
GenerateQuoteFromOpportunityRequest Class
GenerateSalesOrderFromOpportunityRequest Class
IOrganizationService.Retrieve Method
QueryByAttribute
QueryExpression
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.