System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation méthode

HttpHeaders::TryAddWithoutValidation(String, String) method

Tente d’ajouter une nouvelle paire nom-valeur à la collection actuelle.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, String value)
ParamètreTypeDescription
nomStringLe nom de l’en-tête.
valeurStringLa valeur de l’en-tête.

Voir aussi

HttpHeaders::TryAddWithoutValidation(String, System::SharedPtr<Collections::Generic::IEnumerable<String>>) method

Ajoute une collection de paires nom-valeur à la collection actuelle.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, System::SharedPtr<Collections::Generic::IEnumerable<String>> values)
ParamètreTypeDescription
nomStringLe nom de l’en-tête.
valeursSystem::SharedPtr<Collections::Generic::IEnumerable<String>>Les valeurs d’en-tête.

Voir aussi