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如果對像是從 ComposablePartDefinition 物件建立的,這個屬性應該會傳回 的結果ImportDefinitions。
這個屬性的覆寫不應該傳回 null
。 ComposablePart如果 沒有匯入,請改為傳回空IEnumerable<T>的集合。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應