Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AttributeTypeCode Enumeration
Collapse the table of content
Expand the table of content

AttributeTypeCode Enumeration

Describes the type of an attribute.

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

[DataContractAttribute(Name="AttributeTypeCode", Namespace="http://schemas.microsoft.com/xrm/2011/Metadata")] 
public enum AttributeTypeCode

Member nameDescription
BigIntA big integer attribute. Value = 0x12.
BooleanA Boolean attribute. Value = 0.
CalendarRulesAn attribute that contains calendar rules. Value = 0x10.
CustomerAn attribute that represents a customer. Value = 1.
DateTimeA date/time attribute. Value = 2.
DecimalA decimal attribute. Value = 3.
DoubleA double attribute. Value = 4.
EntityNameAn entity name attribute. Value = 20.
IntegerAn integer attribute. Value = 5.
LookupA lookup attribute. Value = 6.
ManagedPropertyA managed property attribute. Value = 0x13.
MemoA memo attribute. Value = 7.
MoneyA money attribute. Value = 8.
OwnerAn owner attribute. Value = 9.
PartyListA partylist attribute. Value = 10.
PicklistA picklist attribute. Value = 11.
StateA state attribute. Value = 12.
StatusA status attribute. Value = 13.
StringA string attribute. Value = 14.
UniqueidentifierAn attribute that is an ID. Value = 15.
VirtualAn attribute that is created by the system at run time. Value = 0x11.

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

Windows Server 2008,Windows Server 2012,Windows 7

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

Community Additions

© 2015 Microsoft