AttributedModelServices.CreatePartDefinition Método

Definición

Crea una definición de elemento con el tipo y el origen especificados.

Sobrecargas

Nombre Description
CreatePartDefinition(Type, ICompositionElement)

Crea una definición de elemento con el tipo y el origen especificados.

CreatePartDefinition(Type, ICompositionElement, Boolean)

Crea una definición de elemento con el tipo y el origen especificados.

CreatePartDefinition(Type, ICompositionElement)

Crea una definición de elemento con el tipo y el origen especificados.

public:
 static System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ CreatePartDefinition(Type ^ type, System::ComponentModel::Composition::Primitives::ICompositionElement ^ origin);
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition(Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin);
static member CreatePartDefinition : Type * System.ComponentModel.Composition.Primitives.ICompositionElement -> System.ComponentModel.Composition.Primitives.ComposablePartDefinition
Public Function CreatePartDefinition (type As Type, origin As ICompositionElement) As ComposablePartDefinition

Parámetros

type
Type

Tipo de la definición.

origin
ICompositionElement

Origen de la definición.

Devoluciones

Nueva definición de elemento.

Se aplica a

CreatePartDefinition(Type, ICompositionElement, Boolean)

Crea una definición de elemento con el tipo y el origen especificados.

public:
 static System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ CreatePartDefinition(Type ^ type, System::ComponentModel::Composition::Primitives::ICompositionElement ^ origin, bool ensureIsDiscoverable);
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition(Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin, bool ensureIsDiscoverable);
static member CreatePartDefinition : Type * System.ComponentModel.Composition.Primitives.ICompositionElement * bool -> System.ComponentModel.Composition.Primitives.ComposablePartDefinition
Public Function CreatePartDefinition (type As Type, origin As ICompositionElement, ensureIsDiscoverable As Boolean) As ComposablePartDefinition

Parámetros

type
Type

Tipo de la definición.

origin
ICompositionElement

Origen de la definición.

ensureIsDiscoverable
Boolean

Valor que indica si se debe detectar o no la nueva definición.

Devoluciones

Nueva definición de elemento.

Se aplica a