ScopingExtensions.Exports(ComposablePartDefinition, String) 方法

定义

获取指示指定部分是否导出指定协定的值。

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

参数

part
ComposablePartDefinition

要搜索的部件。

contractName
String

协定的名称。

返回

如果 part 导出指定的协定,则为 true;否则为 false

适用于