CookieAttribute.ValidateInput 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定是否應該驗證 cookie 值。
public:
property bool ValidateInput { bool get(); void set(bool value); };
public bool ValidateInput { get; set; }
member this.ValidateInput : bool with get, set
Public Property ValidateInput As Boolean
屬性值
true如果 cookie 值被驗證;否則,。 false 預設值為 true。
實作
備註
關於如何使用網頁表單進行模型綁定的教學系列,請參見 「模型綁定與網頁表單」。