Cookie.ToString Méthode

Définition

Substitue la méthode ToString().

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

Retours

Retourne une représentation de chaîne de cet objet Cookie permettant l'inclusion dans un en-tête de demande HTTP Cookie:.

Exemples

L’exemple suivant affiche la valeur de chaîne d’un cookie retourné dans une réponse. Pour obtenir l’exemple complet, consultez la rubrique de classe 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}")

Remarques

Le format exact de la chaîne dépend de la RFC à laquelle ce cookie est conforme.

S’applique à