AttributedModelServices.CreatePart Methode

Definition

Erstellt einen kompositablen Teil.

Überlädt

Name Beschreibung
CreatePart(Object)

Erstellt einen kompositablen Teil aus dem angegebenen Attributobjekt.

CreatePart(ComposablePartDefinition, Object)

Erstellt einen kompositablen Teil aus dem angegebenen Attributobjekt mithilfe der angegebenen Teildefinition.

CreatePart(Object, ReflectionContext)

Erstellt mithilfe des angegebenen Spiegelungskontexts einen kompositablen Teil aus dem angegebenen Attributobjekt.

CreatePart(Object)

Erstellt einen kompositablen Teil aus dem angegebenen Attributobjekt.

public:
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ CreatePart(System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart(object attributedPart);
static member CreatePart : obj -> System.ComponentModel.Composition.Primitives.ComposablePart
Public Function CreatePart (attributedPart As Object) As ComposablePart

Parameter

attributedPart
Object

Das Attributobjekt.

Gibt zurück

Der erstellte Teil.

Gilt für:

CreatePart(ComposablePartDefinition, Object)

Erstellt einen kompositablen Teil aus dem angegebenen Attributobjekt mithilfe der angegebenen Teildefinition.

public:
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ CreatePart(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ partDefinition, System::Object ^ attributedPart);
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart(System.ComponentModel.Composition.Primitives.ComposablePartDefinition partDefinition, object attributedPart);
static member CreatePart : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * obj -> System.ComponentModel.Composition.Primitives.ComposablePart
Public Function CreatePart (partDefinition As ComposablePartDefinition, attributedPart As Object) As ComposablePart

Parameter

partDefinition
ComposablePartDefinition

Die Definition des neuen Teils.

attributedPart
Object

Das Attributobjekt.

Gibt zurück

Der erstellte Teil.

Gilt für:

CreatePart(Object, ReflectionContext)

Erstellt mithilfe des angegebenen Spiegelungskontexts einen kompositablen Teil aus dem angegebenen Attributobjekt.

public:
 static System::ComponentModel::Composition::Primitives::ComposablePart ^ CreatePart(System::Object ^ attributedPart, System::Reflection::ReflectionContext ^ reflectionContext);
public static System.ComponentModel.Composition.Primitives.ComposablePart CreatePart(object attributedPart, System.Reflection.ReflectionContext reflectionContext);
static member CreatePart : obj * System.Reflection.ReflectionContext -> System.ComponentModel.Composition.Primitives.ComposablePart
Public Function CreatePart (attributedPart As Object, reflectionContext As ReflectionContext) As ComposablePart

Parameter

attributedPart
Object

Das Attributobjekt.

reflectionContext
ReflectionContext

Der Spiegelungskontext für den Teil.

Gibt zurück

Der erstellte Teil.

Ausnahmen

reflectionContext ist null.

Gilt für: