AttributedModelServices.Exports<T> Method (ComposablePartDefinition)

.NET Framework (current version)
 

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

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

public static bool Exports<T>(
	this ComposablePartDefinition part
)

Return Value

Type: System.Boolean

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

Type Parameters

T

The contract type.

.NET Framework
Available since 4.5
Return to top
Show: