Udostępnij za pośrednictwem


HttpCookie.Value Property

Definition

Returns the value of the cookie. -or- Assigns a new value to a cookie after the cookie is created.

public string? Value { [Android.Runtime.Register("getValue", "()Ljava/lang/String;", "")] get; [Android.Runtime.Register("setValue", "(Ljava/lang/String;)V", "")] set; }
[<get: Android.Runtime.Register("getValue", "()Ljava/lang/String;", "")>]
[<set: Android.Runtime.Register("setValue", "(Ljava/lang/String;)V", "")>]
member this.Value : string with get, set

Property Value

a String containing the cookie's present value

Attributes

Remarks

Property getter documentation:

Returns the value of the cookie.

Java documentation for java.net.HttpCookie.getValue().

Property setter documentation:

Assigns a new value to a cookie after the cookie is created. If you use a binary value, you may want to use BASE64 encoding.

With Version 0 cookies, values should not contain white space, brackets, parentheses, equals signs, commas, double quotes, slashes, question marks, at signs, colons, and semicolons. Empty values may not behave the same way on all browsers.

Java documentation for java.net.HttpCookie.setValue(java.lang.String).

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