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

屬性值

String

Cookie 的值。 預設值為 Null 參考 (在 Visual Basic 中為 Nothing)。

範例

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

MyCookie.Value = "abc123";

MyCookie.Value = "abc123"
    

適用於