HttpCookie.Value 屬性

定義

取得或設定一個獨立的 Cookie 值。

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

屬性值

餅乾的價值。 預設值為空參考(Nothing 在 Visual Basic)。

範例

以下程式碼範例將現有 Cookie 的值設為「abc123」。

MyCookie.Value = "abc123";

MyCookie.Value = "abc123"
    

適用於