Επεξεργασία

Κοινή χρήση μέσω


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

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

public:
[System::Runtime::CompilerServices::Extension]
 static bool Exports(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part, Type ^ contractType);
public static bool Exports (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, Type contractType);
static member Exports : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * Type -> bool
<Extension()>
Public Function Exports (part As ComposablePartDefinition, contractType As Type) As Boolean

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

Exports<T>(ComposablePartDefinition)

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:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool Exports(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part);
public static bool Exports<T> (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part);
static member Exports : System.ComponentModel.Composition.Primitives.ComposablePartDefinition -> bool
<Extension()>
Public Function Exports(Of T) (part As ComposablePartDefinition) As Boolean

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