Condividi tramite


AttributeMetadata.AttributeType Property

Definition

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.

Applies to