Export (0) Print
Expand All

ComposablePart.ImportDefinitions Property

Gets a collection of the ImportDefinition objects that describe the imported objects required by the part.

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

public abstract IEnumerable<ImportDefinition> ImportDefinitions { get; }

Property Value

Type: System.Collections.Generic.IEnumerable<ImportDefinition>
A collection of ImportDefinition objects that describe the imported objects required by the ComposablePart.

ExceptionCondition
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 ImportDefinitions.

Overrides of this property should never return null. If the ComposablePart does not have imports, return an empty IEnumerable<T> collection instead.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft