ContractBasedImportDefinition.RequiredMetadata Propriedade

Definição

Obtém os nomes dos metadados da exportação exigidos pela definição de importação.

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))

Valor de Propriedade

Uma coleção de String objetos que contêm os nomes dos Export metadados dos objetos exigidos pelo ContractBasedImportDefinition. O padrão é uma coleção vazia IEnumerable<T> .

Observações

As sobrescrituras desta propriedade nunca devem devolver null ou retornar uma IEnumerable<T> coleção que contenha um elemento que seja null. Se a definição não contiver metadados obrigatórios, devolve uma coleção vazia IEnumerable<T> em vez disso.

Aplica-se a