Compartilhar via


ReflectionModelServices.CreateExportDefinition Método

Definição

Cria uma definição de exportação do membro especificado, com o nome do contrato, metadados e origem especificados.

public:
 static System::ComponentModel::Composition::Primitives::ExportDefinition ^ CreateExportDefinition(System::ComponentModel::Composition::ReflectionModel::LazyMemberInfo exportingMember, System::String ^ contractName, Lazy<System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^> ^ metadata, System::ComponentModel::Composition::Primitives::ICompositionElement ^ origin);
public static System.ComponentModel.Composition.Primitives.ExportDefinition CreateExportDefinition (System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo exportingMember, string contractName, Lazy<System.Collections.Generic.IDictionary<string,object>> metadata, System.ComponentModel.Composition.Primitives.ICompositionElement origin);
public static System.ComponentModel.Composition.Primitives.ExportDefinition CreateExportDefinition (System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo exportingMember, string contractName, Lazy<System.Collections.Generic.IDictionary<string,object?>> metadata, System.ComponentModel.Composition.Primitives.ICompositionElement? origin);
static member CreateExportDefinition : System.ComponentModel.Composition.ReflectionModel.LazyMemberInfo * string * Lazy<System.Collections.Generic.IDictionary<string, obj>> * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Primitives.ExportDefinition
Public Shared Function CreateExportDefinition (exportingMember As LazyMemberInfo, contractName As String, metadata As Lazy(Of IDictionary(Of String, Object)), origin As ICompositionElement) As ExportDefinition

Parâmetros

exportingMember
LazyMemberInfo

O membro a ser exportado.

contractName
String

O nome do contrato a ser usado para a exportação.

metadata
Lazy<IDictionary<String,Object>>

Os metadados para a exportação.

origin
ICompositionElement

O objeto do qual a exportação foi originada.

Retornos

Uma definição de exportação criada com base nos parâmetros especificados.

Aplica-se a