AttributedModelServices.AddExportedValue<T> Method (CompositionBatch, T)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a part from the specified value and adds it to the specified batch.

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

public static ComposablePart AddExportedValue<T>(
	this CompositionBatch batch,
	T exportedValue
)

Parameters

batch
Type: System.ComponentModel.Composition.Hosting.CompositionBatch

The batch to add to.

exportedValue
Type: T

The value to add.

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: