Ағылшын тілінде оқу Өзгерту

Бөлісу құралы:


AttributedModelServices.CreatePartDefinition Method

Definition

Creates a part definition with the specified type and origin.

Overloads

CreatePartDefinition(Type, ICompositionElement)

Creates a part definition with the specified type and origin.

CreatePartDefinition(Type, ICompositionElement, Boolean)

Creates a part definition with the specified type and origin.

CreatePartDefinition(Type, ICompositionElement)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Creates a part definition with the specified type and origin.

C#
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition (Type type, System.ComponentModel.Composition.Primitives.ICompositionElement? origin);
C#
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition (Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin);

Parameters

type
Type

The type of the definition.

origin
ICompositionElement

The origin of the definition.

Returns

The new part definition.

Applies to

.NET 9 (package-provided) және басқа нұсқалар
Өнім Нұсқалар
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

CreatePartDefinition(Type, ICompositionElement, Boolean)

Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs
Source:
AttributedModelServices.cs

Creates a part definition with the specified type and origin.

C#
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition (Type type, System.ComponentModel.Composition.Primitives.ICompositionElement? origin, bool ensureIsDiscoverable);
C#
public static System.ComponentModel.Composition.Primitives.ComposablePartDefinition CreatePartDefinition (Type type, System.ComponentModel.Composition.Primitives.ICompositionElement origin, bool ensureIsDiscoverable);

Parameters

type
Type

The type of the definition.

origin
ICompositionElement

The origin of the definition.

ensureIsDiscoverable
Boolean

A value indicating whether or not the new definition should be discoverable.

Returns

The new part definition.

Applies to

.NET 9 (package-provided) және басқа нұсқалар
Өнім Нұсқалар
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)