ScopingExtensions.ContainsPartMetadataWithKey 方法

定义

获取指示指定部分是否包含元数据的值,该数据有指定的密钥。

public:
[System::Runtime::CompilerServices::Extension]
 static bool ContainsPartMetadataWithKey(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part, System::String ^ key);
public static bool ContainsPartMetadataWithKey (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, string key);
static member ContainsPartMetadataWithKey : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * string -> bool
<Extension()>
Public Function ContainsPartMetadataWithKey (part As ComposablePartDefinition, key As String) As Boolean

参数

part
ComposablePartDefinition

要搜索的部件。

key
String

元数据密钥。

返回

如果 part 包含具有此指定键的元数据,则为 true;否则为 false

适用于