Remove()

WebHeaderCollection::Remove(String) method

Removes the header by the specified header name.

void System::Net::WebHeaderCollection::Remove(String name)

Arguments

ParameterTypeDescription
nameStringThe header name.

WebHeaderCollection::Remove(HttpResponseHeader) method

Removes the specified response’s header.

void System::Net::WebHeaderCollection::Remove(HttpResponseHeader header)

Arguments

ParameterTypeDescription
headerHttpResponseHeaderThe header to remove.

WebHeaderCollection::Remove(HttpRequestHeader) method

Removes the specified request’s header.

void System::Net::WebHeaderCollection::Remove(HttpRequestHeader header)

Arguments

ParameterTypeDescription
headerHttpRequestHeaderThe header to remove.

See Also