HttpCookieCollection.Clear 方法

定义

清除 Cookie 集合中的所有 Cookie。Clears all cookies from the cookie collection.

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

示例

下面的示例从 cookie 集合中删除所有 cookie。The following example deletes all cookies from a cookie collection.

MyCookieCollection.Clear();

MyCookieCollection.Clear()
    

适用于

另请参阅