Cookie.ToString 方法  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重写 ToString() 方法。
public:
 override System::String ^ ToString();
	public override string ToString();
	override this.ToString : unit -> string
	Public Overrides Function ToString () As String
	返回
返回此 Cookie 对象的字符串表示形式,该对象适合包含在 HTTP Cookie: 请求标头中。
示例
以下示例显示响应中返回的 Cookie 的字符串值。 有关完整示例,请参阅 Cookie 类主题。
// Show the string representation of the cookie.
Console.WriteLine($"String: {cook}");
' Show the string representation of the cookie.
Console.WriteLine($"String: {cook}")
	注解
字符串的确切格式取决于此 Cookie 符合的 RFC。