System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation метод

HttpHeaders::TryAddWithoutValidation(String, String) method

Пытается добавить новую пару имя-значение в текущую коллекцию.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, String value)
ПараметрТипОписание
имяStringИмя заголовка.
значениеStringЗначение заголовка.

См. также

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

Добавляет коллекцию пар имя-значение в текущую коллекцию.

bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, System::SharedPtr<Collections::Generic::IEnumerable<String>> values)
ПараметрТипОписание
имяStringИмя заголовка.
значенияSystem::SharedPtr<Collections::Generic::IEnumerable<String>>Значения заголовка.

См. также