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.
Assembly: System.ComponentModel.Composition (in System.ComponentModel.Composition.dll)
public: generic<typename T> [ExtensionAttribute] static bool Exports( ComposablePartDefinition^ part )
Parameters
- part
-
Type:
System.ComponentModel.Composition.Primitives::ComposablePartDefinition^
The part to search.
Return Value
Type: System::Booleantrue if part contains an export definition of type T; otherwise, false.
Type Parameters
- T
The contract type.
.NET Framework
Available since 4.5
Available since 4.5
Show: