ReflectionModelServices.CreateExportDefinition Metódus

Definíció

Létrehoz egy exportálási definíciót a megadott tagból a megadott szerződésnévvel, metaadatokkal és forrással.

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

Paraméterek

exportingMember
LazyMemberInfo

Az exportálandó tag.

contractName
String

Az exportáláshoz használandó szerződésnév.

metadata
Lazy<IDictionary<String,Object>>

Az exportálás metaadatai.

origin
ICompositionElement

Az az objektum, amelyből az exportálás származik.

Válaszok

A megadott paraméterekből létrehozott exportálási definíció.

A következőre érvényes: