Condividi tramite


AttributedModelServices.CreatePart Metodo

Definizione

Crea una parte componibile.

Overload

CreatePart(Object)

Crea una parte componibile da un oggetto specificato con attributi.

CreatePart(ComposablePartDefinition, Object)

Crea una parte componibile dall'oggetto con attributi specificato utilizzando la definizione di parte specificata.

CreatePart(Object, ReflectionContext)

Crea una parte componibile dall'oggetto con attributi specificato utilizzando il contesto di reflection specificato.

CreatePart(Object)

Origine:
AttributedModelServices.cs
Origine:
AttributedModelServices.cs
Origine:
AttributedModelServices.cs

Crea una parte componibile da un oggetto specificato con attributi.

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

Parametri

attributedPart
Object

Oggetto con attributi.

Restituisce

Parte creata.

Si applica a

CreatePart(ComposablePartDefinition, Object)

Origine:
AttributedModelServices.cs
Origine:
AttributedModelServices.cs
Origine:
AttributedModelServices.cs

Crea una parte componibile dall'oggetto con attributi specificato utilizzando la definizione di parte specificata.

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

Parametri

partDefinition
ComposablePartDefinition

Definizione della parte nuova.

attributedPart
Object

Oggetto con attributi.

Restituisce

Parte creata.

Si applica a

CreatePart(Object, ReflectionContext)

Origine:
AttributedModelServices.cs
Origine:
AttributedModelServices.cs
Origine:
AttributedModelServices.cs

Crea una parte componibile dall'oggetto con attributi specificato utilizzando il contesto di reflection specificato.

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

Parametri

attributedPart
Object

Oggetto con attributi.

reflectionContext
ReflectionContext

Contesto di reflection per la parte.

Restituisce

Parte creata.

Eccezioni

reflectionContext è null.

Si applica a