Share via


CookieHandler.Path Propriété

Définition

Obtient ou définit le chemin d'accès virtuel pour les cookies écrit par le gestionnaire.

public:
 virtual property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public virtual string Path { get; set; }
member this.Path : string with get, set
Public Overridable Property Path As String

Valeur de propriété

Chemin d'accès virtuel. S'applique par défaut à la racine de l'application ASP.NET.

Exceptions

Une tentative d'affectation d'une valeur null ou vide se produit.

Remarques

Cette propriété correspond à la HttpCookie.Path propriété .

La propriété peut être initialisée en spécifiant l’attribut path sur l’élément cookieHandler> dans la< configuration.

S’applique à