SkyWay Unity SDK
公式APIリファレンス
読み取り中…
検索中…
一致する文字列を見つけられません
WebSocketSharp.Net.CookieCollection クラス

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< CookieGetEnumerator ()
 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.

引数
cookieA Cookie to add.
例外
ArgumentNullExceptioncookie is null.
InvalidOperationExceptionThe collection is read-only.

◆ Add() [2/2]

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

Adds the specified cookies to the collection.

引数
cookiesA CookieCollection that contains the cookies to add.
例外
ArgumentNullExceptioncookies is null.
InvalidOperationExceptionThe collection is read-only.

◆ Clear()

void WebSocketSharp.Net.CookieCollection.Clear ( )
inline

Removes all cookies from the collection.

例外
InvalidOperationExceptionThe 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.
引数
cookieA Cookie to find.
例外
ArgumentNullExceptioncookie 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.

引数
arrayAn array of Cookie that specifies the destination of the elements copied from the collection.
indexAn int that specifies the zero-based index in the array at which copying starts.
例外
ArgumentExceptionThe space from index to the end of array is not enough to copy to.
ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionindex 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.

引数
cookieA Cookie to remove.
例外
ArgumentNullExceptioncookie is null.
InvalidOperationExceptionThe 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.

引数
indexAn int that specifies the zero-based index of the cookie to find.
例外
ArgumentOutOfRangeExceptionindex 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.

引数
nameA string that specifies the name of the cookie to find.
例外
ArgumentNullExceptionname is null.

このクラス詳解は次のファイルから抽出されました: