Share via


ResourceDictionary.HasKey(Object) Metodo

Definizione

Restituisce un valore che indica se ResourceDictionary dispone di una voce con la chiave richiesta.

public:
 virtual bool HasKey(Platform::Object ^ key) = IMap<Platform::Object ^, Platform::Object ^>::HasKey;
bool HasKey(IInspectable const& key);
public bool HasKey(object key);
function hasKey(key)
Public Function HasKey (key As Object) As Boolean

Parametri

key
Object

Platform::Object

IInspectable

Chiave richiesta.

Restituisce

Boolean

bool

true se ResourceDictionary ha una voce con la chiave richiesta; in caso contrario, false.

Implementazioni

Commenti

Nota

L'API Microsoft .NET equivalente è Contains.

Si applica a

Vedi anche