Share via


AttributedModelServices.CreatePartDefinition Metoda

Definice

Vytvoří definici součásti se zadaným typem a původem.

Přetížení

CreatePartDefinition(Type, ICompositionElement)

Vytvoří definici součásti se zadaným typem a původem.

CreatePartDefinition(Type, ICompositionElement, Boolean)

Vytvoří definici součásti se zadaným typem a původem.

CreatePartDefinition(Type, ICompositionElement)

Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs

Vytvoří definici součásti se zadaným typem a původem.

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

Parametry

type
Type

Typ definice.

origin
ICompositionElement

Původ definice.

Návraty

Definice nové části.

Platí pro

CreatePartDefinition(Type, ICompositionElement, Boolean)

Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs
Zdroj:
AttributedModelServices.cs

Vytvoří definici součásti se zadaným typem a původem.

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

Parametry

type
Type

Typ definice.

origin
ICompositionElement

Původ definice.

ensureIsDiscoverable
Boolean

Hodnota označující, zda má být nová definice zjistitelná.

Návraty

Definice nové části.

Platí pro