AttributedModelServices.CreatePart Método

Definición

Crea un elemento que admite composición.

Sobrecargas

CreatePart(Object)

Crea un elemento que se puede crear a partir del objeto con atributos especificado.

CreatePart(ComposablePartDefinition, Object)

Crea un elemento que se puede crear a partir del objeto con atributos especificado, usando la definición de la parte especificada.

CreatePart(Object, ReflectionContext)

Crea un elemento que se puede crear a partir del objeto con atributos especificado, usando el contexto de reflexión especificado.

CreatePart(Object)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Crea un elemento que se puede crear a partir del objeto con atributos especificado.

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

Parámetros

attributedPart
Object

Objeto con atributos.

Devoluciones

El elemento creado.

Se aplica a

CreatePart(ComposablePartDefinition, Object)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Crea un elemento que se puede crear a partir del objeto con atributos especificado, usando la definición de la parte especificada.

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

Parámetros

partDefinition
ComposablePartDefinition

Definición de la nueva parte.

attributedPart
Object

Objeto con atributos.

Devoluciones

El elemento creado.

Se aplica a

CreatePart(Object, ReflectionContext)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Crea un elemento que se puede crear a partir del objeto con atributos especificado, usando el contexto de reflexión especificado.

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

Parámetros

attributedPart
Object

Objeto con atributos.

reflectionContext
ReflectionContext

El contexto de reflexión para el elemento.

Devoluciones

El elemento creado.

Excepciones

reflectionContext es null.

Se aplica a