Edytuj

Udostępnij za pośrednictwem


ComposablePart.Metadata Property

Definition

Gets the metadata of the ComposablePart object.

public:
 virtual property System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ Metadata { System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ get(); };
public virtual System.Collections.Generic.IDictionary<string,object?> Metadata { get; }
public virtual System.Collections.Generic.IDictionary<string,object> Metadata { get; }
member this.Metadata : System.Collections.Generic.IDictionary<string, obj>
Public Overridable ReadOnly Property Metadata As IDictionary(Of String, Object)

Property Value

The metadata of the ComposablePart object. The default is an empty, read-only IDictionary<TKey,TValue> object.

Exceptions

The ComposablePart object has been disposed of.

Remarks

If the ComposablePart object was created from a ComposablePartDefinition object, this property should return the result of Metadata.

Overrides of this property should return a read-only IDictionary<TKey,TValue> object with a case-sensitive, non-linguistic comparer, such as Ordinal, and should never return null. If the ComposablePart does not contain metadata, return an empty IDictionary<TKey,TValue> instead.

Applies to