ScopingExtensions.Exports Method (ComposablePartDefinition, String)

.NET Framework (current version)
 

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

Namespace:   System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)

public static bool Exports(
	this ComposablePartDefinition part,
	string contractName
)

Parameters

part
Type: System.ComponentModel.Composition.Primitives.ComposablePartDefinition

The part to search.

contractName
Type: System.String

The name of the contract.

Return Value

Type: System.Boolean

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

.NET Framework
Available since 4.5
Return to top
Show: