System.Net.Cookie.ToString Method

Overrides the object.ToString method.

Syntax

public override string ToString ()

Returns

Returns a string representation of this System.Net.Cookie object that is suitable for including in a HTTP Cookie: request header.

Remarks

The exact format of the string depends on the RFC that this cookie conforms to.

Requirements

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