Language

BasicClientCookie2.SetDiscard(Boolean) Method

Definition

Sets the cookie's discard flag.

[Android.Runtime.Register("setDiscard", "(Z)V", "GetSetDiscard_ZHandler")]
public virtual void SetDiscard(bool discard);
[<Android.Runtime.Register("setDiscard", "(Z)V", "GetSetDiscard_ZHandler")>]
abstract member SetDiscard : bool -> unit
override this.SetDiscard : bool -> unit

Parameters

discard
Boolean

The discard flag. When true, the cookie reports that it is expired and not persistent.

Implements

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