CookieAttribute.ValidateInput 属性

定义

获取或设置一个值,该值指定是否应验证 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

实现

注解

有关将模型绑定与 Web 窗体配合使用的教程系列,请参阅 模型绑定和 Web 窗体

适用于