EGDL2 2.1
Loading...
Searching...
No Matches
WebSocketSharp.Net.CookieCollection Class Reference

Provides a collection container for instances of the Cookie class. More...

Inherits ICollection, and IEnumerable.

Public Member Functions

 CookieCollection ()
 Initializes a new instance of the CookieCollection class.
 
void Add (Cookie cookie)
 Adds the specified cookie to the collection.
 
void Add (CookieCollection cookies)
 Adds the specified cookies to the collection.
 
void CopyTo (Array array, int index)
 Copies the elements of the collection to the specified Array, starting at the specified index in the array .
 
void CopyTo (Cookie[] array, int index)
 Copies the elements of the collection to the specified array of Cookie, starting at the specified index in the array .
 
IEnumerator GetEnumerator ()
 Gets the enumerator used to iterate through the collection.
 

Properties

int Count [get]
 Gets the number of cookies in the collection.
 
bool IsReadOnly [get]
 Gets a value indicating whether the collection is read-only.
 
bool IsSynchronized [get]
 Gets a value indicating whether the access to the collection is thread safe.
 
Cookie this[int index] [get]
 Gets the Cookie at the specified index from the collection.
 
Cookie this[string name] [get]
 Gets the Cookie with the specified name from the collection.
 
Object SyncRoot [get]
 Gets an object used to synchronize access to the collection.
 

Detailed Description

Provides a collection container for instances of the Cookie class.

Member Function Documentation

◆ Add() [1/2]

void WebSocketSharp.Net.CookieCollection.Add ( Cookie cookie)
inline

Adds the specified cookie to the collection.

Parameters
cookieA Cookie to add.
Exceptions
ArgumentNullExceptioncookie is null.
Here is the caller graph for this function:

◆ Add() [2/2]

void WebSocketSharp.Net.CookieCollection.Add ( CookieCollection cookies)
inline

Adds the specified cookies to the collection.

Parameters
cookiesA CookieCollection that contains the cookies to add.
Exceptions
ArgumentNullExceptioncookies is null.
Here is the call graph for this function:

◆ CopyTo() [1/2]

void WebSocketSharp.Net.CookieCollection.CopyTo ( Array array,
int index )
inline

Copies the elements of the collection to the specified Array, starting at the specified index in the array .

Parameters
arrayAn Array that represents the destination of the elements copied from the collection.
indexAn int that represents the zero-based index in array at which copying begins.
Exceptions
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentExceptionarray is multidimensional. -or- The number of elements in the collection is greater than the available space from index to the end of the destination array .
InvalidCastExceptionThe elements in the collection cannot be cast automatically to the type of the destination array .

◆ CopyTo() [2/2]

void WebSocketSharp.Net.CookieCollection.CopyTo ( Cookie[] array,
int index )
inline

Copies the elements of the collection to the specified array of Cookie, starting at the specified index in the array .

Parameters
arrayAn array of Cookie that represents the destination of the elements copied from the collection.
indexAn int that represents the zero-based index in array at which copying begins.
Exceptions
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionindex is less than zero.
ArgumentExceptionThe number of elements in the collection is greater than the available space from index to the end of the destination array .

◆ GetEnumerator()

IEnumerator WebSocketSharp.Net.CookieCollection.GetEnumerator ( )
inline

Gets the enumerator used to iterate through the collection.

Returns
An IEnumerator instance used to iterate through the collection.

Property Documentation

◆ Count

int WebSocketSharp.Net.CookieCollection.Count
get

Gets the number of cookies in the collection.

An int that represents the number of cookies in the collection.

◆ IsReadOnly

bool WebSocketSharp.Net.CookieCollection.IsReadOnly
get

Gets a value indicating whether the collection is read-only.

true if the collection is read-only; otherwise, false. The default value is true.

◆ IsSynchronized

bool WebSocketSharp.Net.CookieCollection.IsSynchronized
get

Gets a value indicating whether the access to the collection is thread safe.

true if the access to the collection is thread safe; otherwise, false. The default value is false.

◆ SyncRoot

Object WebSocketSharp.Net.CookieCollection.SyncRoot
get

Gets an object used to synchronize access to the collection.

An Object used to synchronize access to the collection.

◆ this[int index]

Cookie WebSocketSharp.Net.CookieCollection.this[int index]
get

Gets the Cookie at the specified index from the collection.

A Cookie at the specified index in the collection.

Parameters
indexAn int that represents the zero-based index of the Cookie to find.
Exceptions
ArgumentOutOfRangeExceptionindex is out of allowable range of indexes for the collection.

◆ this[string name]

Cookie WebSocketSharp.Net.CookieCollection.this[string name]
get

Gets the Cookie with the specified name from the collection.

A Cookie with the specified name in the collection.

Parameters
nameA string that represents the name of the Cookie to find.
Exceptions
ArgumentNullExceptionname is null.

The documentation for this class was generated from the following file: