AttributedModelServices.CreatePartDefinition メソッド

定義

型および元を指定して、パーツ定義を作成します。

オーバーロード

CreatePartDefinition(Type, ICompositionElement)

型および元を指定して、パーツ定義を作成します。

CreatePartDefinition(Type, ICompositionElement, Boolean)

型および元を指定して、パーツ定義を作成します。

CreatePartDefinition(Type, ICompositionElement)

型および元を指定して、パーツ定義を作成します。

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

パラメーター

type
Type

定義の種類。

origin
ICompositionElement

定義の元。

戻り値

新しいパーツ定義。

適用対象

CreatePartDefinition(Type, ICompositionElement, Boolean)

型および元を指定して、パーツ定義を作成します。

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

パラメーター

type
Type

定義の種類。

origin
ICompositionElement

定義の元。

ensureIsDiscoverable
Boolean

新しい定義を検出可能にするかどうかを示す値。

戻り値

新しいパーツ定義。

適用対象