ScopingExtensions.ContainsPartMetadataWithKey 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 contains metadata that has the specified key.
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
Parameters
The part to search.
- key
- String
The metadata key.
Returns
true
if part
contains metadata that has the specified key; otherwise, false
.
Applies to
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.