ComposablePart.Metadata Property

Definition

Gets the metadata of the ComposablePart object.

public virtual System.Collections.Generic.IDictionary<string,object?> Metadata { get; }
public virtual System.Collections.Generic.IDictionary<string,object> Metadata { get; }

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

Termék Verziók
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)