AttributedModelServices::AddExportedValue<T> Method (CompositionBatch^, T)
.NET Framework (current version)
Creates a part from the specified value and adds it to the specified batch.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
public: generic<typename T> [ExtensionAttribute] static ComposablePart^ AddExportedValue( 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
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Show: