AttributedModelServices::AddExportedValue<T> Method (CompositionBatch^, String^, T)
.NET Framework (current version)
Creates a part from the specified value and adds it to the specified batch with the specified contract name.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
public: generic<typename T> [ExtensionAttribute] static ComposablePart^ AddExportedValue( CompositionBatch^ batch, String^ contractName, T exportedValue )
Parameters
- batch
-
Type:
System.ComponentModel.Composition.Hosting::CompositionBatch^
The batch to add to.
- contractName
-
Type:
System::String^
The contract name of the export.
- 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: