CookieAttribute.ValidateInput 属性

定义

获取或设置一个值,该值指定是否应验证 Cookie 值。Gets or sets a value that specifies whether cookie values should be validated.

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

属性值

Boolean

如果 cookie 值不相等,则为 true;否则为 falsetrue if cookie values are validated; otherwise, false. 默认值为 trueThe default is true.

实现

注解

有关如何在 Web 窗体中使用模型绑定的教程系列,请参阅 模型绑定和 Web 窗体For a tutorial series on using model binding with Web Forms, see Model Binding and Web Forms.

适用于