Afficher en anglais Édition

Partage via


AttributedModelServices.ComposeExportedValue Method

Definition

Creates a part from a specified object and composes it with a specified composition container.

Overloads

ComposeExportedValue<T>(CompositionContainer, T)

Creates a part from the specified value and composes it in the specified composition container.

ComposeExportedValue<T>(CompositionContainer, String, T)

Creates a part from the specified object under the specified contract name and composes it in the specified composition container.

ComposeExportedValue<T>(CompositionContainer, T)

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

Creates a part from the specified value and composes it in the specified composition container.

C#
public static void ComposeExportedValue<T>(this System.ComponentModel.Composition.Hosting.CompositionContainer container, T exportedValue);

Type Parameters

T

The type of the new part.

Parameters

container
CompositionContainer

The composition container to perform composition in.

exportedValue
T

The value to compose.

Applies to

.NET 10 (package-provided) et autres versions
Produit Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

ComposeExportedValue<T>(CompositionContainer, String, T)

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

Creates a part from the specified object under the specified contract name and composes it in the specified composition container.

C#
public static void ComposeExportedValue<T>(this System.ComponentModel.Composition.Hosting.CompositionContainer container, string contractName, T exportedValue);

Type Parameters

T

The type of the new part.

Parameters

container
CompositionContainer

The composition container to perform composition in.

contractName
String

The contract name to export the part under.

exportedValue
T

The value to compose.

Applies to

.NET 10 (package-provided) et autres versions
Produit Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)