Condividi tramite


ScopingExtensions.ContainsPartMetadataWithKey Metodo

Definizione

Ottiene un valore che indica se la parte specificata contiene metadati con la chiave specificata.

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

Parametri

part
ComposablePartDefinition

Parte in cui eseguire la ricerca.

key
String

Chiave dei metadati.

Restituisce

true se part contiene i metadati con la chiave specificata, in caso contrario false.

Si applica a