Język

ISetCookie2.SetDiscard(Boolean) Method

Definition

Set the Discard attribute.

[Android.Runtime.Register("setDiscard", "(Z)V", "GetSetDiscard_ZHandler:Org.Apache.Http.Cookies.ISetCookie2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetDiscard(bool discard);
[<Android.Runtime.Register("setDiscard", "(Z)V", "GetSetDiscard_ZHandler:Org.Apache.Http.Cookies.ISetCookie2Invoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetDiscard : bool -> unit

Parameters

discard
Boolean

true to discard the cookie at the end of the session even if Max-Age is set; false to remove that requirement. A value of false does not by itself make the cookie persistent.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also