AttributedModelServices.Imports<T> Method (ComposablePartDefinition)

.NET Framework (current version)

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

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

public static bool Imports<T>(
	this ComposablePartDefinition part

Return Value

Type: System.Boolean

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

Type Parameters


The contract type.

.NET Framework
Available since 4.5
Return to top