AttributedModelServices.CreatePart Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Cria uma parte componível.
Sobrecargas
| Name | Description |
|---|---|
| CreatePart(Object) |
Cria uma parte componível a partir do objeto atribuído especificado. |
| CreatePart(ComposablePartDefinition, Object) |
Cria uma parte componível a partir do objeto atribuído especificado, usando a definição de parte especificada. |
| CreatePart(Object, ReflectionContext) |
Cria uma parte componível a partir do objeto atribuído especificado, usando o contexto de reflexão especificado. |
CreatePart(Object)
Cria uma parte componível a partir do objeto atribuído 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
O objeto atribuído.
Devoluções
A parte criada.
Aplica-se a
CreatePart(ComposablePartDefinition, Object)
Cria uma parte componível a partir do objeto atribuído especificado, usando a definição de 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
A definição da nova peça.
- attributedPart
- Object
O objeto atribuído.
Devoluções
A parte criada.
Aplica-se a
CreatePart(Object, ReflectionContext)
Cria uma parte componível a partir do objeto atribuído especificado, usando o contexto de reflexão 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
O objeto atribuído.
- reflectionContext
- ReflectionContext
O contexto de reflexão para o papel.
Devoluções
A parte criada.
Exceções
reflectionContext é null.