AttributedModelServices.ComposeExportedValue AttributedModelServices.ComposeExportedValue AttributedModelServices.ComposeExportedValue AttributedModelServices.ComposeExportedValue Method

Definition

Creates a part from a specified object and composes it with a specified composition container.

Overloads

ComposeExportedValue<T>(CompositionContainer, T) ComposeExportedValue<T>(CompositionContainer, T) ComposeExportedValue<T>(CompositionContainer, T) ComposeExportedValue<T>(CompositionContainer, T)

Creates a part from the specified value and composes it in the specified composition container.

ComposeExportedValue<T>(CompositionContainer, String, T) ComposeExportedValue<T>(CompositionContainer, String, T) ComposeExportedValue<T>(CompositionContainer, String, T) ComposeExportedValue<T>(CompositionContainer, String, T)

Creates a part from the specified object under the specified contract name and composes it in the specified composition container.

ComposeExportedValue<T>(CompositionContainer, T) ComposeExportedValue<T>(CompositionContainer, T) ComposeExportedValue<T>(CompositionContainer, T) ComposeExportedValue<T>(CompositionContainer, T)

Creates a part from the specified value and composes it in the specified composition container.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void ComposeExportedValue(System::ComponentModel::Composition::Hosting::CompositionContainer ^ container, T exportedValue);
public static void ComposeExportedValue<T> (this System.ComponentModel.Composition.Hosting.CompositionContainer container, T exportedValue);
static member ComposeExportedValue : System.ComponentModel.Composition.Hosting.CompositionContainer * 'T -> unit
<Extension()>
Public Sub ComposeExportedValue(Of T) (container As CompositionContainer, exportedValue As T)
Type Parameters
T

The type of the new part.

Parameters
container
CompositionContainer CompositionContainer CompositionContainer CompositionContainer

The composition container to perform composition in.

exportedValue

The value to compose.

ComposeExportedValue<T>(CompositionContainer, String, T) ComposeExportedValue<T>(CompositionContainer, String, T) ComposeExportedValue<T>(CompositionContainer, String, T) ComposeExportedValue<T>(CompositionContainer, String, T)

Creates a part from the specified object under the specified contract name and composes it in the specified composition container.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void ComposeExportedValue(System::ComponentModel::Composition::Hosting::CompositionContainer ^ container, System::String ^ contractName, T exportedValue);
public static void ComposeExportedValue<T> (this System.ComponentModel.Composition.Hosting.CompositionContainer container, string contractName, T exportedValue);
static member ComposeExportedValue : System.ComponentModel.Composition.Hosting.CompositionContainer * string * 'T -> unit
<Extension()>
Public Sub ComposeExportedValue(Of T) (container As CompositionContainer, contractName As String, exportedValue As T)
Type Parameters
T

The type of the new part.

Parameters
container
CompositionContainer CompositionContainer CompositionContainer CompositionContainer

The composition container to perform composition in.

contractName
String String String String

The contract name to export the part under.

exportedValue

The value to compose.

Applies to