Provides a collection container for instances of the Cookie class.
More...
Inherits ICollection, and IEnumerable.
|
|
| 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.
|
| |
|
| 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.
|
| |
Provides a collection container for instances of the Cookie class.
◆ Add() [1/2]
| void WebSocketSharp.Net.CookieCollection.Add |
( |
Cookie | cookie | ) |
|
|
inline |
Adds the specified cookie to the collection.
- Parameters
-
- Exceptions
-
| ArgumentNullException | cookie is null. |
◆ Add() [2/2]
Adds the specified cookies to the collection.
- Parameters
-
| cookies | A CookieCollection that contains the cookies to add. |
- Exceptions
-
| ArgumentNullException | cookies is null. |
◆ 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
-
| array | An Array that represents the destination of the elements copied from the collection. |
| index | An int that represents the zero-based index in array at which copying begins. |
- Exceptions
-
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | index is less than zero. |
| ArgumentException | array 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 . |
| InvalidCastException | The 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
-
| array | An array of Cookie that represents the destination of the elements copied from the collection. |
| index | An int that represents the zero-based index in array at which copying begins. |
- Exceptions
-
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | index is less than zero. |
| ArgumentException | The 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.
◆ 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
-
| index | An int that represents the zero-based index of the Cookie to find. |
- Exceptions
-
| ArgumentOutOfRangeException | index 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
-
| name | A string that represents the name of the Cookie to find. |
- Exceptions
-
| ArgumentNullException | name is null. |
The documentation for this class was generated from the following file:
- /Users/yiyangshang/egdl2/Assets/eag/Scripts/enablegames/PortalAPI/SocketIO/WebsocketSharp/Net/CookieCollection.cs