ResourceMap.HasKey(String) Méthode

Définition

Détermine si la carte peut récupérer une ressource avec l’identificateur de ressource spécifié.

public:
 virtual bool HasKey(Platform::String ^ key) = IMapView<Platform::String ^, NamedResource ^>::HasKey;
bool HasKey(winrt::hstring const& key);
public bool HasKey(string key);
function hasKey(key)
Public Function HasKey (key As String) As Boolean

Paramètres

key
String

Platform::String

winrt::hstring

Identificateur de ressource à localiser dans la carte. Pour plus d’informations sur la syntaxe, consultez les remarques relatives à la classe ResourceMap .

Retours

Boolean

bool

true si la clé est trouvée ; sinon, false.

Implémente

S’applique à