Bagikan melalui


AnonymousIdentificationSection.CookiePath Properti

Definisi

Mendapatkan atau mengatur jalur tempat cookie disimpan.

public:
 property System::String ^ CookiePath { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")]
[System.Configuration.StringValidator(MinLength=1)]
public string CookiePath { get; set; }
[<System.Configuration.ConfigurationProperty("cookiePath", DefaultValue="/")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.CookiePath : string with get, set
Public Property CookiePath As String

Nilai Properti

Jalur cookie HTTP yang digunakan untuk identifikasi anonim pengguna. Nilai default adalah garis miring (/), yang mewakili akar aplikasi Web.

Atribut

Contoh

Contoh kode berikut menunjukkan cara mengakses CookiePath properti .

// Get CookiePath.
string cookiePath = 
    anonymousIdentificationSection.CookiePath;
Console.WriteLine("Cookie path: {0}", cookiePath);
' Get CookiePath.
Dim cookiePath As String = _
anonymousIdentificationSection.CookiePath
Console.WriteLine("Cookie path: {0}", cookiePath)

Keterangan

Properti CookiePath menunjukkan tempat cookie autentikasi berada dan ditransmisikan bersama dengan cookie autentikasi itu sendiri.

Berlaku untuk