Provides a collection of instances of the Cookie class.
[詳解]
|
|
| 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 | Clear () |
| | Removes all cookies from the collection.
|
| |
| bool | Contains (Cookie cookie) |
| | Determines whether the collection contains the specified cookie.
|
| |
| void | CopyTo (Cookie[] array, int index) |
| | Copies the elements of the collection to the specified array, starting at the specified index.
|
| |
| IEnumerator< Cookie > | GetEnumerator () |
| | Gets the enumerator that iterates through the collection.
|
| |
| bool | Remove (Cookie cookie) |
| | Removes the specified cookie from the collection.
|
| |
|
| int | Count [get] |
| | Gets the number of cookies in the collection.
|
| |
| bool | IsReadOnly [get, set] |
| | 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 of instances of the Cookie class.
◆ Add() [1/2]
| void WebSocketSharp.Net.CookieCollection.Add |
( |
Cookie | cookie | ) |
|
|
inline |
Adds the specified cookie to the collection.
- 引数
-
- 例外
-
| ArgumentNullException | cookie is null. |
| InvalidOperationException | The collection is read-only. |
◆ Add() [2/2]
Adds the specified cookies to the collection.
- 引数
-
- 例外
-
| ArgumentNullException | cookies is null. |
| InvalidOperationException | The collection is read-only. |
◆ Clear()
| void WebSocketSharp.Net.CookieCollection.Clear |
( |
| ) |
|
|
inline |
Removes all cookies from the collection.
- 例外
-
| InvalidOperationException | The collection is read-only. |
◆ Contains()
| bool WebSocketSharp.Net.CookieCollection.Contains |
( |
Cookie | cookie | ) |
|
|
inline |
Determines whether the collection contains the specified cookie.
- 戻り値
true if the cookie is found in the collection; otherwise, false.
- 引数
-
- 例外
-
| ArgumentNullException | cookie is null. |
◆ CopyTo()
| void WebSocketSharp.Net.CookieCollection.CopyTo |
( |
Cookie[] | array, |
|
|
int | index ) |
|
inline |
Copies the elements of the collection to the specified array, starting at the specified index.
- 引数
-
| array | An array of Cookie that specifies the destination of the elements copied from the collection. |
| index | An int that specifies the zero-based index in the array at which copying starts. |
- 例外
-
| ArgumentException | The space from index to the end of array is not enough to copy to. |
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | index is less than zero. |
◆ GetEnumerator()
| IEnumerator< Cookie > WebSocketSharp.Net.CookieCollection.GetEnumerator |
( |
| ) |
|
|
inline |
Gets the enumerator that iterates through the collection.
- 戻り値
- An T:System.Collections.Generic.IEnumerator<Cookie> instance that can be used to iterate through the collection.
◆ Remove()
| bool WebSocketSharp.Net.CookieCollection.Remove |
( |
Cookie | cookie | ) |
|
|
inline |
Removes the specified cookie from the collection.
- 戻り値
true if the cookie is successfully removed; otherwise, false.
false if the cookie is not found in the collection.
- 引数
-
- 例外
-
| ArgumentNullException | cookie is null. |
| InvalidOperationException | The collection is read-only. |
◆ 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 |
|
getset |
Gets a value indicating whether the collection is read-only.
true if the collection is read-only; otherwise, false.
The default value is false.
◆ 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.
- 引数
-
| index | An int that specifies the zero-based index of the cookie to find. |
- 例外
-
| ArgumentOutOfRangeException | index is out of allowable range 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.
null if not found.
- 引数
-
| name | A string that specifies the name of the cookie to find. |
- 例外
-
| ArgumentNullException | name is null. |
このクラス詳解は次のファイルから抽出されました:
- SkyWayUnitySDK/Assets/SkyWay/Scripts/Deps/websocket-sharp/websocket-sharp/Net/CookieCollection.cs