AttributeMetadata.AttributeType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the type for the attribute.
public:
property Nullable<Microsoft::Xrm::Sdk::Metadata::AttributeTypeCode> AttributeType { Nullable<Microsoft::Xrm::Sdk::Metadata::AttributeTypeCode> get(); };
[System.Runtime.Serialization.DataMember]
public Microsoft.Xrm.Sdk.Metadata.AttributeTypeCode? AttributeType { get; }
[<System.Runtime.Serialization.DataMember>]
member this.AttributeType : Nullable<Microsoft.Xrm.Sdk.Metadata.AttributeTypeCode>
Public ReadOnly Property AttributeType As Nullable(Of AttributeTypeCode)
Property Value
The attribute type.
- Attributes
Remarks
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.