ComposablePart.ImportDefinitions 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得描述該零件所需匯入物件的集合 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結果。
此屬性的覆寫不應再回來 null。 如果沒有 ComposablePart 匯入,則回傳一個空 IEnumerable<T> 的集合。