cookiemanager クラス : SetCookie(cookie)メソッド
説明
クッキーを設定します。
構文
instance.SetCookie(cookie coo)
引数
| クラス | 名前 | 説明 |
| cookie | coo | クッキー。 |
返り値
無し。
サンプルコード
| 1: | browser mainBrowser; |
| 2: | cookiemanager cm; |
| 3: | list{cookie} coos = cn.GetCookies(mainBrowser.Url); // All cookies in the current URL. |
| 4: | cookie firstChild = coos[0]; |
| 5: | firstChild.Value = "new_value"; |
| 6: | cm.SetCookie(firstChild); |
注意
引数のクッキーが既に存在する場合は、上書きされます。そうでなければ、新しいクッキーとして登録されます。
参照リンク
無し。


