Споделяне чрез


AttributeMetadata.AttributeType Property

 

Applies To: Dynamics CRM 2015

Gets the type for the attribute.

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

Syntax

[DataMemberAttribute]
public Nullable<AttributeTypeCode> AttributeType { get; internal set; }
public:
[DataMemberAttribute]
property Nullable<AttributeTypeCode> AttributeType {
    Nullable<AttributeTypeCode> get();
    internal: void set(Nullable<AttributeTypeCode> value);
}
[<DataMemberAttribute>]
member AttributeType : Nullable<AttributeTypeCode> with get, internal set
<DataMemberAttribute>
Public Property AttributeType As Nullable(Of AttributeTypeCode)
    Get
    Friend Set
End Property

Property Value

Type: System.Nullable<AttributeTypeCode>

Type: Nullable<AttributeTypeCode>
The attribute type.

Remarks

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

Note

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

See Also

AttributeMetadata Class
Microsoft.Xrm.Sdk.Metadata Namespace

Return to top

© 2016 Microsoft. All rights reserved. Copyright