Share via


HttpCookie.Version Property

Definition

Returns the version of the protocol this cookie complies with. -or- Sets the version of the cookie protocol this cookie complies with.

public int Version { [Android.Runtime.Register("getVersion", "()I", "")] get; [Android.Runtime.Register("setVersion", "(I)V", "")] set; }
[<get: Android.Runtime.Register("getVersion", "()I", "")>]
[<set: Android.Runtime.Register("setVersion", "(I)V", "")>]
member this.Version : int with get, set

Property Value

0 if the cookie complies with the original Netscape specification; 1 if the cookie complies with RFC 2965/2109

Attributes

Exceptions

if v is neither 0 nor 1

Remarks

Property getter documentation:

Returns the version of the protocol this cookie complies with. Version 1 complies with RFC 2965/2109, and version 0 complies with the original cookie specification drafted by Netscape. Cookies provided by a browser use and identify the browser's cookie version.

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

Property setter documentation:

Sets the version of the cookie protocol this cookie complies with. Version 0 complies with the original Netscape cookie specification. Version 1 complies with RFC 2965/2109.

Java documentation for java.net.HttpCookie.setVersion(int).

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