HttpCookie.Value 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個獨立的 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"