Edit

Share via


HttpCookieCollection.Clear Method

Definition

Clears all cookies from the cookie collection.

public:
 void Clear();
public void Clear ();
member this.Clear : unit -> unit
Public Sub Clear ()

Examples

The following example deletes all cookies from a cookie collection.

MyCookieCollection.Clear();
MyCookieCollection.Clear()

Applies to

See also