Export (0) Print
Expand All

AttributedModelServices.Exports<T> Method (ComposablePartDefinition)

.NET Framework 4.5

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
)

Type Parameters

T

The contract type.

Return Value

Type: System.Boolean
true if part contains an export definition of type T; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ComposablePartDefinition. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft