Lezen in het Engels Bewerken

Delen via


AttributedModelServices.Exports Method

Definition

Overloads

Exports(ComposablePartDefinition, Type)

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

Exports<T>(ComposablePartDefinition)

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

Exports(ComposablePartDefinition, Type)

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

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

public static bool Exports (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, Type contractType);

Parameters

part
ComposablePartDefinition

The part to search.

contractType
Type

The contract type.

Returns

true if part contains an export definition that matches contractType; otherwise, false.

Applies to

.NET 9 (package-provided) en andere versies
Product Versies
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 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)

Exports<T>(ComposablePartDefinition)

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

Returns a value that indicates whether the specified part contains an export that matches the specified contract type.

public static bool Exports<T> (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part);

Type Parameters

T

The contract type.

Parameters

part
ComposablePartDefinition

The part to search.

Returns

true if part contains an export definition of type T; otherwise, false.

Applies to

.NET 9 (package-provided) en andere versies
Product Versies
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 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)