Bearbeiten

Freigeben über


ScopingExtensions.Exports(ComposablePartDefinition, String) Method

Definition

Gets a value that indicates whether the specified part exports the specified contract.

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

Parameters

part
ComposablePartDefinition

The part to search.

contractName
String

The name of the contract.

Returns

true if part exports the specified contract; otherwise, false.

Applies to