ComposablePart.ImportDefinitions 屬性

定義

取得 ImportDefinition 物件的集合,這些物件描述組件所需的匯入物件。

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)

屬性值

ImportDefinition 物件的集合,描述 ComposablePart 所需的匯入物件。

例外狀況

ComposablePart 物件已經處置。

備註

ComposablePart如果對像是從 ComposablePartDefinition 物件建立的,這個屬性應該會傳回 的結果ImportDefinitions

這個屬性的覆寫不應該傳回 nullComposablePart如果 沒有匯入,請改為傳回空IEnumerable<T>的集合。

適用於