System::Collections::Generic::BaseDictionary::TryGetValue method

BaseDictionary::TryGetValue method

Cerca il valore associato a una chiave e lo recupera se trovato.

bool System::Collections::Generic::BaseDictionary<Map>::TryGetValue(const key_t &key, mapped_t &value) const override
ParametroTipoDescrizione
chiaveconst key_t&Chiave da cercare.
valuemapped_t&Riferimento per memorizzare il valore trovato.

ReturnValue

true se il valore è trovato e recuperato, false altrimenti.

Vedi anche