Share via


AttributeMetadata Class

Applies To: Microsoft Dynamics CRM 2013, Microsoft Dynamics CRM Online

Contains all the metadata for an entity attribute.

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

Syntax

'Declaration
<KnownTypeAttribute(GetType(PicklistAttributeMetadata))> _
<KnownTypeAttribute(GetType(ManagedPropertyAttributeMetadata))> _
<KnownTypeAttribute(GetType(StringAttributeMetadata))> _
<DataContractAttribute(Name:="AttributeMetadata", Namespace:="https://schemas.microsoft.com/xrm/2011/Metadata")> _
<KnownTypeAttribute(GetType(BooleanAttributeMetadata))> _
<KnownTypeAttribute(GetType(DateTimeAttributeMetadata))> _
<KnownTypeAttribute(GetType(DecimalAttributeMetadata))> _
<KnownTypeAttribute(GetType(DoubleAttributeMetadata))> _
<KnownTypeAttribute(GetType(EntityNameAttributeMetadata))> _
<KnownTypeAttribute(GetType(ImageAttributeMetadata))> _
<KnownTypeAttribute(GetType(IntegerAttributeMetadata))> _
<KnownTypeAttribute(GetType(BigIntAttributeMetadata))> _
<KnownTypeAttribute(GetType(LookupAttributeMetadata))> _
<KnownTypeAttribute(GetType(StatusAttributeMetadata))> _
<KnownTypeAttribute(GetType(MoneyAttributeMetadata))> _
<KnownTypeAttribute(GetType(MemoAttributeMetadata))> _
<KnownTypeAttribute(GetType(StateAttributeMetadata))> _
Public Class AttributeMetadata
    Inherits MetadataBase
[KnownTypeAttribute(typeof(PicklistAttributeMetadata))] 
[KnownTypeAttribute(typeof(ManagedPropertyAttributeMetadata))] 
[KnownTypeAttribute(typeof(StringAttributeMetadata))] 
[DataContractAttribute(Name="AttributeMetadata", Namespace="https://schemas.microsoft.com/xrm/2011/Metadata")] 
[KnownTypeAttribute(typeof(BooleanAttributeMetadata))] 
[KnownTypeAttribute(typeof(DateTimeAttributeMetadata))] 
[KnownTypeAttribute(typeof(DecimalAttributeMetadata))] 
[KnownTypeAttribute(typeof(DoubleAttributeMetadata))] 
[KnownTypeAttribute(typeof(EntityNameAttributeMetadata))] 
[KnownTypeAttribute(typeof(ImageAttributeMetadata))] 
[KnownTypeAttribute(typeof(IntegerAttributeMetadata))] 
[KnownTypeAttribute(typeof(BigIntAttributeMetadata))] 
[KnownTypeAttribute(typeof(LookupAttributeMetadata))] 
[KnownTypeAttribute(typeof(StatusAttributeMetadata))] 
[KnownTypeAttribute(typeof(MoneyAttributeMetadata))] 
[KnownTypeAttribute(typeof(MemoAttributeMetadata))] 
[KnownTypeAttribute(typeof(StateAttributeMetadata))] 
public class AttributeMetadata : MetadataBase

Remarks

This class is returned in the RetrieveAttributeResponse.

Inheritance Hierarchy

System.Object
   Microsoft.Xrm.Sdk.Metadata.MetadataBase
    Microsoft.Xrm.Sdk.Metadata.AttributeMetadata
       Derived Classes

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Server 2012, Windows 7 (All Versions), Windows 8 (All Versions)

Target Platforms

Windows Server 2008, ,Windows Server 2012, ,Windows 7 (All Versions),

See Also

Reference

AttributeMetadata Members
Microsoft.Xrm.Sdk.Metadata Namespace

Other Resources

Customize Entity Attribute Metadata
Sample: Dump Attribute Metadata to a File
Sample: Work with Attributes
Sample: Retrieve Entity Metadata Using JavaScript

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