AttributeTypeCode Enumeration

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

Describes the type of an attribute.

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

Syntax

'Declaration
<DataContractAttribute(Name:="AttributeTypeCode", Namespace:="http://schemas.microsoft.com/xrm/2011/Metadata")> _
Public Enumeration AttributeTypeCode
[DataContractAttribute(Name="AttributeTypeCode", Namespace="http://schemas.microsoft.com/xrm/2011/Metadata")] 
public enum AttributeTypeCode

Members

Member name Description
BigInt A big integer attribute. Value = 0x12.
Boolean A Boolean attribute. Value = 0.
CalendarRules An attribute that contains calendar rules. Value = 0x10.
Customer An attribute that represents a customer. Value = 1.
DateTime A date/time attribute. Value = 2.
Decimal A decimal attribute. Value = 3.
Double A double attribute. Value = 4.
EntityName An entity name attribute. Value = 20.
Integer An integer attribute. Value = 5.
Lookup A lookup attribute. Value = 6.
ManagedProperty A managed property attribute. Value = 0x13.
Memo A memo attribute. Value = 7.
Money A money attribute. Value = 8.
Owner An owner attribute. Value = 9.
PartyList A partylist attribute. Value = 10.
Picklist A picklist attribute. Value = 11.
State A state attribute. Value = 12.
Status A status attribute. Value = 13.
String A string attribute. Value = 14.
Uniqueidentifier An attribute that is an ID. Value = 15.
Virtual An attribute that is created by the system at run time. Value = 0x11.

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

Microsoft.Xrm.Sdk.Metadata Namespace

Other Resources

Customize Entity Attribute Metadata

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