ContractBasedImportDefinition.RequiredMetadata 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取导入定义所需的导出的元数据名称。
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> 集合。