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>>标头值。

另见