Επεξεργασία

Κοινή χρήση μέσω


CookieCollection.Add Method

Definition

Adds a Cookie to a CookieCollection.

Overloads

Add(Cookie)

Adds a Cookie to a CookieCollection.

Add(CookieCollection)

Adds the contents of a CookieCollection to the current instance.

Add(Cookie)

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

Adds a Cookie to a 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)

Parameters

cookie
Cookie

The Cookie to be added to a CookieCollection.

Implements

Exceptions

cookie is null.

See also

Applies to

Add(CookieCollection)

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

Adds the contents of a CookieCollection to the current instance.

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)

Parameters

cookies
CookieCollection

The CookieCollection to be added.

Exceptions

cookies is null.

Remarks

Each Cookie is read from the CookieCollection cookies parameter and added to the current instance.

See also

Applies to