idx_set()

WebHeaderCollection::idx_set(HttpRequestHeader, String) method

Sets the header value of the specified header.

void System::Net::WebHeaderCollection::idx_set(HttpRequestHeader header, String value)

Arguments

ParameterTypeDescription
headerHttpRequestHeaderThe header.
valueStringThe header value to set.

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)

Arguments

ParameterTypeDescription
headerHttpResponseHeaderThe header.
valueStringThe header value to set.

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)

Arguments

ParameterTypeDescription
nameStringThe header name.
valueStringThe header value to set.

See Also