CookieCollection.Add 方法

定义

Cookie 添加到 CookieCollection

重载

Add(Cookie)

Cookie 添加到 CookieCollection

Add(CookieCollection)

CookieCollection 的内容添加到当前实例。

Add(Cookie)

Source:
CookieCollection.cs
Source:
CookieCollection.cs
Source:
CookieCollection.cs

Cookie 添加到 CookieCollection

public:
 void Add(System::Net::Cookie ^ cookie);
public:
 virtual void Add(System::Net::Cookie ^ cookie);
public void Add (System.Net.Cookie cookie);
member this.Add : System.Net.Cookie -> unit
abstract member Add : System.Net.Cookie -> unit
override this.Add : System.Net.Cookie -> unit
Public Sub Add (cookie As Cookie)

参数

cookie
Cookie

要添加到 CookieCollectionCookie

实现

例外

cookie null

另请参阅

适用于

Add(CookieCollection)

Source:
CookieCollection.cs
Source:
CookieCollection.cs
Source:
CookieCollection.cs

CookieCollection 的内容添加到当前实例。

public:
 void Add(System::Net::CookieCollection ^ cookies);
public void Add (System.Net.CookieCollection cookies);
member this.Add : System.Net.CookieCollection -> unit
Public Sub Add (cookies As CookieCollection)

参数

cookies
CookieCollection

要添加的 CookieCollection

例外

cookies null

注解

CookieCollectioncookies 参数读取每个 Cookie,并将其添加到当前实例。

另请参阅

适用于