Share via


Remove Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Removes the specified header from the collection.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

Syntax

'Declaration
Public Sub Remove ( _
    name As String _
)
public void Remove(
    string name
)
public:
void Remove(
    String^ name
)
member Remove : 
        name:string -> unit 
public function Remove(
    name : String
)

Parameters

Remarks

Remove deletes the specified header from the collection. If the specified header does not exist, the method returns.

.NET Framework Security

See Also

Reference

WebHeaderCollection Class

System.Net Namespace