AttributedModelServices::Exports Method (ComposablePartDefinition^, Type^)

.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:
[ExtensionAttribute]
static bool Exports(
	ComposablePartDefinition^ part,
	Type^ contractType
)

Parameters

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

The part to search.

contractType
Type: System::Type^

The contract type.

Return Value

Type: System::Boolean

true if part contains an export definition that matches contractType; otherwise, false.

.NET Framework
Available since 4.5
Return to top
Show: