Editar

Compartir a través de


ComposablePart.ImportDefinitions Property

Definition

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

public:
 abstract property System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ImportDefinition ^> ^ ImportDefinitions { System::Collections::Generic::IEnumerable<System::ComponentModel::Composition::Primitives::ImportDefinition ^> ^ get(); };
public abstract System.Collections.Generic.IEnumerable<System.ComponentModel.Composition.Primitives.ImportDefinition> ImportDefinitions { get; }
member this.ImportDefinitions : seq<System.ComponentModel.Composition.Primitives.ImportDefinition>
Public MustOverride ReadOnly Property ImportDefinitions As IEnumerable(Of ImportDefinition)

Property Value

A collection of ImportDefinition objects that describe the imported objects required 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 ImportDefinitions.

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

Applies to