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> 集合。

适用于