AttributeMetadata.AttributeType Property


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Gets the type for the attribute.

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

public Nullable<AttributeTypeCode> AttributeType { get; internal set; }

Property Value

Type: System.Nullable<AttributeTypeCode>

Type: Nullable<AttributeTypeCode>
The attribute type.

This property is read-only it is set based on the type of Attribute passed to the CreateAttributeRequest message.


For ImageAttributeMetadata this value will return Virtual. Use AttributeTypeName to get a value that is correct for all types.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Community Additions