AttributedModelServices.AddExportedValue Método

Definición

Crea un elemento a partir de un valor especificado y lo agrega a un lote de composición.

Sobrecargas

AddExportedValue<T>(CompositionBatch, T)

Crea un elemento a partir del valor especificado y lo agrega al lote indicado.

AddExportedValue<T>(CompositionBatch, String, T)

Crea un elemento a partir del valor especificado y lo agrega al lote indicado con el nombre de contrato especificado.

AddExportedValue<T>(CompositionBatch, T)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Crea un elemento a partir del valor especificado y lo agrega al lote indicado.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ AddExportedValue(System::ComponentModel::Composition::Hosting::CompositionBatch ^ batch, T exportedValue);
public static System.ComponentModel.Composition.Primitives.ComposablePart AddExportedValue<T> (this System.ComponentModel.Composition.Hosting.CompositionBatch batch, T exportedValue);
static member AddExportedValue : System.ComponentModel.Composition.Hosting.CompositionBatch * 'T -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function AddExportedValue(Of T) (batch As CompositionBatch, exportedValue As T) As ComposablePart

Parámetros de tipo

T

Tipo del nuevo elemento.

Parámetros

batch
CompositionBatch

Lote al que se va a agregar el objeto.

exportedValue
T

El valor que se va a agregar.

Devoluciones

Nuevo elemento.

Se aplica a

AddExportedValue<T>(CompositionBatch, String, T)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Crea un elemento a partir del valor especificado y lo agrega al lote indicado con el nombre de contrato especificado.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ AddExportedValue(System::ComponentModel::Composition::Hosting::CompositionBatch ^ batch, System::String ^ contractName, T exportedValue);
public static System.ComponentModel.Composition.Primitives.ComposablePart AddExportedValue<T> (this System.ComponentModel.Composition.Hosting.CompositionBatch batch, string contractName, T exportedValue);
static member AddExportedValue : System.ComponentModel.Composition.Hosting.CompositionBatch * string * 'T -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function AddExportedValue(Of T) (batch As CompositionBatch, contractName As String, exportedValue As T) As ComposablePart

Parámetros de tipo

T

Tipo del nuevo elemento.

Parámetros

batch
CompositionBatch

Lote al que se va a agregar el objeto.

contractName
String

Nombre del contrato de la exportación.

exportedValue
T

El valor que se va a agregar.

Devoluciones

Nuevo elemento.

Se aplica a