共用方式為


AttributedModelServices.CreatePartDefinition 方法

定義

建立具有指定之型別和原意的部分定義。

多載

CreatePartDefinition(Type, ICompositionElement)

建立具有指定之型別和原意的部分定義。

CreatePartDefinition(Type, ICompositionElement, Boolean)

建立具有指定之型別和原意的部分定義。

CreatePartDefinition(Type, ICompositionElement)

來源:
AttributedModelServices.cs
來源:
AttributedModelServices.cs
來源:
AttributedModelServices.cs

建立具有指定之型別和原意的部分定義。

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)

來源:
AttributedModelServices.cs
來源:
AttributedModelServices.cs
來源:
AttributedModelServices.cs

建立具有指定之型別和原意的部分定義。

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

值,指出新定義是否可搜尋。

傳回

新的組件定義。

適用於