AttributedModelServices.AddPart(CompositionBatch, Object) Methode

Definition

Erstellt einen kompositablen Teil aus dem angegebenen Attributobjekt und fügt ihn dem angegebenen Kompositionsbatch hinzu.

public:
[System::Runtime::CompilerServices::Extension]
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ AddPart(System::ComponentModel::Composition::Hosting::CompositionBatch ^ batch, System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart AddPart(this System.ComponentModel.Composition.Hosting.CompositionBatch batch, object attributedPart);
static member AddPart : System.ComponentModel.Composition.Hosting.CompositionBatch * obj -> System.ComponentModel.Composition.Primitives.ComposablePart
<Extension()>
Public Function AddPart (batch As CompositionBatch, attributedPart As Object) As ComposablePart

Parameter

batch
CompositionBatch

Der hinzuzufügende Batch.

attributedPart
Object

Das hinzuzufügende Objekt.

Gibt zurück

Der neue Teil.

Gilt für: