AttributedModelServices.AddPart(CompositionBatch, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a composable part from the specified attributed object, and adds it to the specified composition batch.
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
Parameters
- batch
- CompositionBatch
The batch to add to.
- attributedPart
- Object
The object to add.
Returns
The new part.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.