ScopingExtensions.ContainsPartMetadata<T> 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 and value.
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static bool ContainsPartMetadata(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part, System::String ^ key, T value);
public static bool ContainsPartMetadata<T> (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, string key, T value);
static member ContainsPartMetadata : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * string * 'T -> bool
<Extension()>
Public Function ContainsPartMetadata(Of T) (part As ComposablePartDefinition, key As String, value As T) As Boolean
Type Parameters
- T
The type of the metadata value.
Parameters
The part to search.
- key
- String
The metadata key.
- value
- T
The metadata value.
Returns
true
if part
contains metadata that has the specified key, value type, and value; otherwise, false
.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.