ComposablePart.ExportDefinitions Property

 

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

Namespace:   System.ComponentModel.Composition.Primitives
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public abstract IEnumerable<ExportDefinition> ExportDefinitions { get; }

Property Value

Type: System.Collections.Generic.IEnumerable<ExportDefinition>

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

Exception Condition
ObjectDisposedException

The ComposablePart object has been disposed of.

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.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: