共用方式為


ContractBasedImportDefinition.RequiredMetadata 屬性

定義

取得匯入定義所需之匯出的中繼資料名稱。

public:
 virtual property System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Type ^>> ^ RequiredMetadata { System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, Type ^>> ^ get(); };
public virtual System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Type>> RequiredMetadata { get; }
member this.RequiredMetadata : seq<System.Collections.Generic.KeyValuePair<string, Type>>
Public Overridable ReadOnly Property RequiredMetadata As IEnumerable(Of KeyValuePair(Of String, Type))

屬性值

String 物件的集合,這些物件包含 Export 所需之 ContractBasedImportDefinition 物件的中繼資料名稱。 預設為空的 IEnumerable<T> 集合。

備註

這個屬性的覆寫絕對不應該傳回 null 或傳回 IEnumerable<T> 包含 為 null之專案的集合。 如果定義不包含必要的元數據,請改為傳回空 IEnumerable<T> 的集合。

適用於