System::Net::WebHeaderCollection::idx_set method

WebHeaderCollection::idx_set(HttpRequestHeader, String) method

Sets the header value of the specified header.

void System::Net::WebHeaderCollection::idx_set(HttpRequestHeader header, String value)
ParameterTypeDescription
headerHttpRequestHeaderThe header.
valueStringThe header value to set.

See Also

WebHeaderCollection::idx_set(HttpResponseHeader, String) method

Sets the header value using the specified response’s header.

void System::Net::WebHeaderCollection::idx_set(HttpResponseHeader header, String value)
ParameterTypeDescription
headerHttpResponseHeaderThe header.
valueStringThe header value to set.

See Also

WebHeaderCollection::idx_set(String, String) method

Sets the header value using the specified header name.

void System::Net::WebHeaderCollection::idx_set(String name, String value)
ParameterTypeDescription
nameStringThe header name.
valueStringThe header value to set.

See Also