AttributedModelServices.CreatePartDefinition 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立包含指定類型與原點的零件定義。
多載
| 名稱 | Description |
|---|---|
| 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);
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);
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
一個表示新定義是否應該被發現的值。
傳回
新的零件定義。