System.Net.Cookie.Version Property

Gets or sets the version of HTTP state maintenance to which the cookie conforms.

Syntax

public int Version { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

The default value for the Cookie.Version property is 0, complying with the original Netscape specification. If the value is explicitly set to 1, then this System.Net.Cookie must conform to RFC 2109. Note that if a System.Net.Cookie was created automatically by receiving a Set-Cookie2 HTTP response header, the conformance is set to RFC 2965.

An attempt to set the Cookie.Version property to a value less than zero will throw an exception.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0