Export Construtores

Definição

Inicializa uma nova instância da classe Export.Initializes a new instance of the Export class.

Sobrecargas

Export()

Inicializa uma nova instância da classe Export.Initializes a new instance of the Export class.

Export(ExportDefinition, Func<Object>)

Inicializa uma nova instância da classe Export com a definição de exportação e o getter do objeto exportado especificados.Initializes a new instance of the Export class with the specified export definition and exported object getter.

Export(String, Func<Object>)

Inicializa uma nova instância da classe Export com o nome de contrato e getter do valor exportado especificados.Initializes a new instance of the Export class with the specified contract name and exported value getter.

Export(String, IDictionary<String,Object>, Func<Object>)

Inicializa uma nova instância da classe Export com o nome e metadados de contrato e getter do valor exportado especificados.Initializes a new instance of the Export class with the specified contract name, metadata, and exported value getter.

Export()

Inicializa uma nova instância da classe Export.Initializes a new instance of the Export class.

protected:
 Export();
protected Export ();
Protected Sub New ()

Comentários

Tipos derivados que chamam esse construtor devem substituir a Definition propriedade e o GetExportedValueCore método.Derived types that call this constructor must override the Definition property and the GetExportedValueCore method.

Aplica-se a

Export(ExportDefinition, Func<Object>)

Inicializa uma nova instância da classe Export com a definição de exportação e o getter do objeto exportado especificados.Initializes a new instance of the Export class with the specified export definition and exported object getter.

public:
 Export(System::ComponentModel::Composition::Primitives::ExportDefinition ^ definition, Func<System::Object ^> ^ exportedValueGetter);
public Export (System.ComponentModel.Composition.Primitives.ExportDefinition definition, Func<object> exportedValueGetter);
public Export (System.ComponentModel.Composition.Primitives.ExportDefinition definition, Func<object?> exportedValueGetter);
new System.ComponentModel.Composition.Primitives.Export : System.ComponentModel.Composition.Primitives.ExportDefinition * Func<obj> -> System.ComponentModel.Composition.Primitives.Export
Public Sub New (definition As ExportDefinition, exportedValueGetter As Func(Of Object))

Parâmetros

definition
ExportDefinition

Um objeto que descreve o contrato que o objeto Export satisfaz.An object that describes the contract that the Export object satisfies.

exportedValueGetter
Func<Object>

Um método que é chamado para criar o objeto exportado do Export.A method that is called to create the exported object of the Export. Isso atrasa a criação do objeto até a propriedade Value ser chamada.This delays the creation of the object until the Value property is called.

Exceções

definition é null.definition is null.

- ou --or- exportedObjectGetter é null.exportedObjectGetter is null.

Aplica-se a

Export(String, Func<Object>)

Inicializa uma nova instância da classe Export com o nome de contrato e getter do valor exportado especificados.Initializes a new instance of the Export class with the specified contract name and exported value getter.

public:
 Export(System::String ^ contractName, Func<System::Object ^> ^ exportedValueGetter);
public Export (string contractName, Func<object> exportedValueGetter);
public Export (string contractName, Func<object?> exportedValueGetter);
new System.ComponentModel.Composition.Primitives.Export : string * Func<obj> -> System.ComponentModel.Composition.Primitives.Export
Public Sub New (contractName As String, exportedValueGetter As Func(Of Object))

Parâmetros

contractName
String

O nome do contrato do objeto Export.The contract name of the Export object.

exportedValueGetter
Func<Object>

Um método que é chamado para criar o objeto exportado do Export.A method that is called to create the exported object of the Export. Isso atrasa a criação do objeto até o método Value ser chamado.This delays the creation of the object until the Value method is called.

Exceções

contractName é null.contractName is null.

- ou --or- exportedObjectGetter é null.exportedObjectGetter is null.

contractName é uma cadeia de caracteres vazia ("").contractName is an empty string ("").

Aplica-se a

Export(String, IDictionary<String,Object>, Func<Object>)

Inicializa uma nova instância da classe Export com o nome e metadados de contrato e getter do valor exportado especificados.Initializes a new instance of the Export class with the specified contract name, metadata, and exported value getter.

public:
 Export(System::String ^ contractName, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ metadata, Func<System::Object ^> ^ exportedValueGetter);
public Export (string contractName, System.Collections.Generic.IDictionary<string,object> metadata, Func<object> exportedValueGetter);
public Export (string contractName, System.Collections.Generic.IDictionary<string,object?>? metadata, Func<object?> exportedValueGetter);
new System.ComponentModel.Composition.Primitives.Export : string * System.Collections.Generic.IDictionary<string, obj> * Func<obj> -> System.ComponentModel.Composition.Primitives.Export
Public Sub New (contractName As String, metadata As IDictionary(Of String, Object), exportedValueGetter As Func(Of Object))

Parâmetros

contractName
String

O nome do contrato do objeto Export.The contract name of the Export object.

metadata
IDictionary<String,Object>

Os metadados do objeto Export ou null para definir a propriedade Metadata para um objeto IDictionary<TKey,TValue> vazio somente leitura.The metadata of the Export object or null to set the Metadata property to an empty, read-only IDictionary<TKey,TValue> object.

exportedValueGetter
Func<Object>

Um método que é chamado para criar o objeto exportado do Export.A method that is called to create the exported object of the Export. Isso atrasa a criação do objeto até o método Value ser chamado.This delays the creation of the object until the Value method is called.

Exceções

contractName é null.contractName is null.

- ou --or- exportedObjectGetter é null.exportedObjectGetter is null.

contractName é uma cadeia de caracteres vazia ("").contractName is an empty string ("").

Aplica-se a