CookieCollection

Wisej.Base.CookieCollection

Namespace: Wisej.Base

Assembly: Wisej.Framework (3.5.0.0)

Manages the collection of cookies for the current application.

public class CookieCollection : IList<Cookie>, ICollection<Cookie>, IEnumerable<Cookie>, IEnumerable

Properties

Int32: Returns the number of Cookie items in the collection.

String: Returns the Cookie with a specific name from a CookieCollection.

Throws:

Cookie: Returns the Cookie with a specific name from a CookieCollection.

Throws:

Methods

Adds a cookie to the collection.

Adds a new cookie to the collection.

Returns: Cookie.

Adds a new cookie to the collection.

Returns: Cookie.

Adds a new cookie to the collection.

Returns: Cookie.

Adds a new cookie to the collection.

Returns: Cookie.

Delete all cookies from the collection. NOTE: Cookies are only removed from the collection, not from the client. You need to set the expiration date to remove it from the client.

Determines whether the cookie is present in the collection.

Returns: Boolean.

Copies the cookie collection to a compatible one-dimensional array, starting at the specified index of the target array.

Returns the cookie with the specified name.

Returns: Cookie.

Returns: IEnumerator<Cookie>.

Searches for the specified cookie and returns the zero-based index of the first occurrence.

Returns: Int32.

Searches for the specified cookie by name and returns the zero-based index of the first occurrence.

Returns: Int32.

Removes the specified cookie from the collection. NOTE: Cookies are only removed from the collection, not from the client. You need to set the expiration date to remove it from the client.

Returns: Boolean. true if item is successfully removed; otherwise, false.

Removes the specified cookie from the collection. NOTE: Cookies are only removed from the collection, not from the client. You need to set the expiration date to remove it from the client.

Returns: Boolean. true if item is successfully removed; otherwise, false.

Removes the cookie at the specified index. NOTE: Cookies are only removed from the collection, not from the client. You need to set the expiration date to remove it from the client.

Last updated