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

Значение, указывающее, должно ли быть обнаруживаемым новое определение.

Возвращаемое значение

Определение новой части.

Применяется к