Cookie.ToString メソッド

定義

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 参照してください。

// Show the string representation of the cookie.
Console::WriteLine( "String: {0}", cook );
// Show the string representation of the cookie.
Console.WriteLine($"String: {cook}");
' Show the string representation of the cookie.
Console.WriteLine($"String: {cook}")

注釈

文字列の正確な形式は、この Cookie が準拠している RFC によって異なります。

適用対象