HttpCookie.Value Properti

Definisi

Mendapatkan atau menetapkan nilai cookie individual.

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

Nilai Properti

Nilai cookie. Nilai default adalah referensi null (Nothing dalam Visual Basic).

Contoh

Contoh kode berikut menetapkan nilai cookie yang ada ke "abc123".

MyCookie.Value = "abc123";

MyCookie.Value = "abc123"
    

Berlaku untuk