Cookie.ToString 메서드

정의

ToString() 메서드를 재정의합니다.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

반환

HTTP Cookie: 요청 헤더에 포함할 수 있도록 이 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}")

설명

문자열의 정확한 형식은 이 쿠키가 준수하는 RFC에 따라 달라집니다.

적용 대상