AttributedModelServices.CreatePartDefinition Método
Definição
Cria uma definição de parte com o tipo e a origem especificados.Creates a part definition with the specified type and origin.
Sobrecargas
| CreatePartDefinition(Type, ICompositionElement) |
Cria uma definição de parte com o tipo e a origem especificados.Creates a part definition with the specified type and origin. |
| CreatePartDefinition(Type, ICompositionElement, Boolean) |
Cria uma definição de parte com o tipo e a origem especificados.Creates a part definition with the specified type and origin. |
CreatePartDefinition(Type, ICompositionElement)
Cria uma definição de parte com o tipo e a origem especificados.Creates a part definition with the specified type and origin.
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);
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
O tipo da definição.The type of the definition.
- origin
- ICompositionElement
A origem da definição.The origin of the definition.
Retornos
A nova definição da parte.The new part definition.
Aplica-se a
CreatePartDefinition(Type, ICompositionElement, Boolean)
Cria uma definição de parte com o tipo e a origem especificados.Creates a part definition with the specified type and origin.
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);
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
O tipo da definição.The type of the definition.
- origin
- ICompositionElement
A origem da definição.The origin of the definition.
- ensureIsDiscoverable
- Boolean
Um valor que indica se a nova definição deve ou não ser detectável.A value indicating whether or not the new definition should be discoverable.
Retornos
A nova definição da parte.The new part definition.