Partager via


AttributedModelServices.CreatePartDefinition Méthode

Définition

Crée une définition de partie avec le type et l'origine spécifiés.

Surcharges

CreatePartDefinition(Type, ICompositionElement)

Crée une définition de partie avec le type et l'origine spécifiés.

CreatePartDefinition(Type, ICompositionElement, Boolean)

Crée une définition de partie avec le type et l'origine spécifiés.

CreatePartDefinition(Type, ICompositionElement)

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

Crée une définition de partie avec le type et l'origine spécifiés.

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

Paramètres

type
Type

Type de la définition.

origin
ICompositionElement

Origine de la définition.

Retours

Définition du nouveau composant.

S’applique à

CreatePartDefinition(Type, ICompositionElement, Boolean)

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

Crée une définition de partie avec le type et l'origine spécifiés.

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

Paramètres

type
Type

Type de la définition.

origin
ICompositionElement

Origine de la définition.

ensureIsDiscoverable
Boolean

Valeur indiquant si la nouvelle définition doit être détectable.

Retours

Définition du nouveau composant.

S’applique à