Compartilhar via


AttributedModelServices.AddPart(CompositionBatch, Object) Método

Definição

Cria uma parte combinável usando o objeto atribuído especificado e a adiciona ao lote de composição especificado.

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

Parâmetros

batch
CompositionBatch

O lote ao qual adicionar.

attributedPart
Object

O objeto a adicionar.

Retornos

A nova parte.

Aplica-se a