CookieCollection.Add Método

Definición

Agrega un objeto Cookie a un CookieCollection.Adds a Cookie to a CookieCollection.

Sobrecargas

Add(Cookie)

Agrega un objeto Cookie a un CookieCollection.Adds a Cookie to a CookieCollection.

Add(CookieCollection)

Agrega el contenido de un objeto CookieCollection a la instancia actual.Adds the contents of a CookieCollection to the current instance.

Agrega un objeto Cookie a un CookieCollection.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)

Parámetros

cookie
Cookie

El objeto Cookie que se agrega a CookieCollection.The Cookie to be added to a CookieCollection.

Implementaciones

Excepciones

cookie es null.cookie is null.

Consulte también

Se aplica a

Add(CookieCollection)

Agrega el contenido de un objeto CookieCollection a la instancia actual.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)

Parámetros

cookies
CookieCollection

CookieCollection que se va a agregar.The CookieCollection to be added.

Excepciones

cookies es null.cookies is null.

Comentarios

Cada Cookie se lee desde el CookieCollection cookies parámetro y se agrega a la instancia actual.Each Cookie is read from the CookieCollectioncookies parameter and added to the current instance.

Consulte también

Se aplica a