OptionMetadata Class

 

Applies To: Dynamics CRM 2015

Contains metadata representing an option within an Option set.

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

Inheritance Hierarchy

System.Object
  Microsoft.Xrm.Sdk.Metadata.MetadataBase
    Microsoft.Xrm.Sdk.Metadata.OptionMetadata
      Microsoft.Xrm.Sdk.Metadata.StateOptionMetadata
      Microsoft.Xrm.Sdk.Metadata.StatusOptionMetadata

Syntax

[DataContractAttribute(Name = "OptionMetadata", Namespace = "http://schemas.microsoft.com/xrm/2011/Metadata")]
[KnownTypeAttribute(typeof(StateOptionMetadata))]
[KnownTypeAttribute(typeof(StatusOptionMetadata))]
public class OptionMetadata : MetadataBase
[DataContractAttribute(Name = "OptionMetadata", Namespace = "http://schemas.microsoft.com/xrm/2011/Metadata")]
[KnownTypeAttribute((StateOptionMetadata^::typeid))]
[KnownTypeAttribute((StatusOptionMetadata^::typeid))]
public ref class OptionMetadata : MetadataBase
[<DataContractAttribute(Name = "OptionMetadata", Namespace = "http://schemas.microsoft.com/xrm/2011/Metadata")>]
[<KnownTypeAttribute(typeof(StateOptionMetadata))>]
[<KnownTypeAttribute(typeof(StatusOptionMetadata))>]
type OptionMetadata = 
    class
        inherit MetadataBase
    end
<DataContractAttribute(Name := "OptionMetadata", Namespace := "http://schemas.microsoft.com/xrm/2011/Metadata")>
<KnownTypeAttribute(GetType(StateOptionMetadata))>
<KnownTypeAttribute(GetType(StatusOptionMetadata))>
Public Class OptionMetadata
    Inherits MetadataBase

Constructors

Name Description
System_CAPS_pubmethod OptionMetadata()

Initializes a new instance of theOptionMetadata class

System_CAPS_pubmethod OptionMetadata(Int32)

Initializes a new instance of the OptionMetadata class

System_CAPS_pubmethod OptionMetadata(Label, Nullable<Int32>)

Initializes a new instance of the OptionMetadata class

Properties

Name Description
System_CAPS_pubproperty Description

Gets or sets the label containing the description for the option.

System_CAPS_pubproperty ExtensionData

Gets or sets the structure that contains extra data.(Inherited from MetadataBase.)

System_CAPS_pubproperty HasChanged

Gets whether the item of metadata has changed.(Inherited from MetadataBase.)

System_CAPS_pubproperty IsManaged

Gets whether the option is part of a managed solution.

System_CAPS_pubproperty Label

Gets or sets the label containing the text for the option.

System_CAPS_pubproperty MetadataId

Gets or sets a unique identifier for the metadata item.(Inherited from MetadataBase.)

System_CAPS_pubproperty Value

Gets or sets the value of the option.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.

See Also

Microsoft.Xrm.Sdk.Metadata Namespace
Customize global option sets

Return to top

© 2016 Microsoft. All rights reserved. Copyright