System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation 方法
HttpHeaders::TryAddWithoutValidation(String, String) method
尝试向当前集合添加新的名称-值对。
bool System::Net::Http::Headers::HttpHeaders::TryAddWithoutValidation(String name, String value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 名称 | String | 标头名称。 |
| 值 | String | 标头值。 |
另见
- Class String
- Class HttpHeaders
- Namespace System::Net::Http::Headers
- Library Aspose.Font for C++
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>> | 标头值。 |
另见
- Class String
- Typedef SharedPtr
- Class IEnumerable
- Class HttpHeaders
- Namespace System::Net::Http::Headers
- Library Aspose.Font for C++