AttributedModelServices.CreatePart Metoda

Definice

Vytvoří sestavitelnou část.

Přetížení

CreatePart(Object)

Vytvoří kompozibilní část ze zadaného atributu objektu.

CreatePart(ComposablePartDefinition, Object)

Vytvoří sestavitelnou část ze zadaného atributu objektu pomocí zadané definice části.

CreatePart(Object, ReflectionContext)

Vytvoří sestavitelnou část ze zadaného atributu objektu pomocí zadaného kontextu reflexe.

CreatePart(Object)

Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs

Vytvoří kompozibilní část ze zadaného atributu objektu.

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

Parametry

attributedPart
Object

Atribut objektu.

Návraty

Vytvořená část

Platí pro

CreatePart(ComposablePartDefinition, Object)

Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs

Vytvoří sestavitelnou část ze zadaného atributu objektu pomocí zadané definice části.

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

Parametry

partDefinition
ComposablePartDefinition

Definice nové části

attributedPart
Object

Atribut objektu.

Návraty

Vytvořená část

Platí pro

CreatePart(Object, ReflectionContext)

Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs

Vytvoří sestavitelnou část ze zadaného atributu objektu pomocí zadaného kontextu reflexe.

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

Parametry

attributedPart
Object

Atribut objektu.

reflectionContext
ReflectionContext

Kontext reflexe pro část.

Návraty

Vytvořená část

Výjimky

reflectionContext je null.

Platí pro