AttributedModelServices.CreatePartDefinition 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定类型和源创建部件定义。
重载
CreatePartDefinition(Type, ICompositionElement) |
使用指定类型和源创建部件定义。 |
CreatePartDefinition(Type, ICompositionElement, Boolean) |
使用指定类型和源创建部件定义。 |
CreatePartDefinition(Type, ICompositionElement)
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- 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)
- Source:
- AttributedModelServices.cs
- Source:
- AttributedModelServices.cs
- Source:
- 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
一个值,指示新定义是否应是可发现的。
返回
新部件定义。