Udostępnij za pośrednictwem


AttributedModelServices.CreatePart Metoda

Definicja

Tworzy część składową.

Przeciążenia

CreatePart(Object)

Tworzy część składową na podstawie określonego obiektu przypisanego.

CreatePart(ComposablePartDefinition, Object)

Tworzy część składową z określonego obiektu przypisanego przy użyciu określonej definicji części.

CreatePart(Object, ReflectionContext)

Tworzy część składową z określonego obiektu przypisanego przy użyciu określonego kontekstu odbicia.

CreatePart(Object)

Źródło:
AttributedModelServices.cs
Źródło:
AttributedModelServices.cs
Źródło:
AttributedModelServices.cs

Tworzy część składową na podstawie określonego obiektu przypisanego.

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

Obiekt przypisany.

Zwraca

Utworzona część.

Dotyczy

CreatePart(ComposablePartDefinition, Object)

Źródło:
AttributedModelServices.cs
Źródło:
AttributedModelServices.cs
Źródło:
AttributedModelServices.cs

Tworzy część składową z określonego obiektu przypisanego przy użyciu określonej definicji części.

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

Definicja nowej części.

attributedPart
Object

Obiekt przypisany.

Zwraca

Utworzona część.

Dotyczy

CreatePart(Object, ReflectionContext)

Źródło:
AttributedModelServices.cs
Źródło:
AttributedModelServices.cs
Źródło:
AttributedModelServices.cs

Tworzy część składową z określonego obiektu przypisanego przy użyciu określonego kontekstu odbicia.

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

Obiekt przypisany.

reflectionContext
ReflectionContext

Kontekst odbicia dla tej części.

Zwraca

Utworzona część.

Wyjątki

reflectionContext to null.

Dotyczy