ScopingExtensions.Exports(ComposablePartDefinition, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates whether the specified part exports the specified contract.
public:
[System::Runtime::CompilerServices::Extension]
static bool Exports(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part, System::String ^ contractName);
public static bool Exports (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, string contractName);
static member Exports : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * string -> bool
<Extension()>
Public Function Exports (part As ComposablePartDefinition, contractName As String) As Boolean
Parameters
The part to search.
- contractName
- String
The name of the contract.
Returns
true
if part
exports the specified contract; otherwise, false
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.