OptionMetadata Class
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Contains metadata representing an option within an Option set.
For the Web API the corresponding type is OptionMetadata ComplexType.
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Microsoft.Xrm.Sdk.Metadata.MetadataBase
Microsoft.Xrm.Sdk.Metadata.OptionMetadata
Microsoft.Xrm.Sdk.Metadata.StateOptionMetadata
Microsoft.Xrm.Sdk.Metadata.StatusOptionMetadata
[KnownTypeAttribute(typeof(StateOptionMetadata))] [DataContractAttribute(Name = "OptionMetadata", Namespace = "http://schemas.microsoft.com/xrm/2011/Metadata")] [KnownTypeAttribute(typeof(StatusOptionMetadata))] [MetadataNameAttribute(LogicalName = "OptionMetadata", LogicalCollectionName = "OptionDefinitions")] public class OptionMetadata : MetadataBase
| Name | Description | |
|---|---|---|
![]() | OptionMetadata() | Initializes a new instance of theOptionMetadata class |
![]() | OptionMetadata(Int32) | Initializes a new instance of the OptionMetadata class |
![]() | OptionMetadata(Label, Nullable<Int32>) | Initializes a new instance of the OptionMetadata class |
| Name | Description | |
|---|---|---|
![]() | Color | Gets or sets the hexadecimal value set to assign a color for the option. |
![]() | Description | Gets or sets the label containing the description for the option. |
![]() | ExtensionData | Gets or sets the structure that contains extra data.(Inherited from MetadataBase.) |
![]() | HasChanged | Gets whether the item of metadata has changed.(Inherited from MetadataBase.) |
![]() | IsManaged | Gets whether the option is part of a managed solution. |
![]() | Label | Gets or sets the label containing the text for the option. |
![]() | MetadataId | Gets or sets a unique identifier for the metadata item.(Inherited from MetadataBase.) |
![]() | Value | Gets or sets the value of the option. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright


