AttributedModelServices::AddPart Method (CompositionBatch^, Object^)

 

Creates a composable part from the specified attributed object, and adds it to the specified composition batch.

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

public:
[ExtensionAttribute]
static ComposablePart^ AddPart(
	CompositionBatch^ batch,
	Object^ attributedPart
)

Parameters

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

The batch to add to.

attributedPart
Type: System::Object^

The object to add.

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