AttributedModelServices::ComposeExportedValue<T> Method (CompositionContainer^, String^, T)

 

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

Namespace:   System.ComponentModel.Composition
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public:
generic<typename T>
[ExtensionAttribute]
static void ComposeExportedValue(
	CompositionContainer^ container,
	String^ contractName,
	T exportedValue
)

Parameters

container
Type: System.ComponentModel.Composition.Hosting::CompositionContainer^

The composition container to perform composition in.

contractName
Type: System::String^

The contract name to export the part under.

exportedValue
Type: T

The value to compose.

Type Parameters

T

The type of the new part.

.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Return to top
Show: