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:
generic<typename T>
[ExtensionAttribute]
static bool Imports(
	ComposablePartDefinition^ part
)

Return Value

Type: System::Boolean

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

Type Parameters

T

The contract type.

.NET Framework
Available since 4.5
Return to top
Show: