ComposablePart.ExportDefinitions Property

Definition

Gets a collection of the ExportDefinition objects that describe the exported objects provided by the part.

public abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ExportDefinition> ExportDefinitions { get; }

Property Value

A collection of ExportDefinition objects that describe the exported objects provided by the ComposablePart.

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 ExportDefinitions.

Overrides of this property should never return null. If the ComposablePart does not have exports, return an empty IEnumerable<T> collection 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)