Control.ValidateRequestMode 屬性

定義

取得或設定值,指出控制項是否對來自瀏覽器的用戶端輸入檢查潛在的危險值。Gets or sets a value that indicates whether the control checks client input from the browser for potentially dangerous values.

public:
 virtual property System::Web::UI::ValidateRequestMode ValidateRequestMode { System::Web::UI::ValidateRequestMode get(); void set(System::Web::UI::ValidateRequestMode value); };
public virtual System.Web.UI.ValidateRequestMode ValidateRequestMode { get; set; }
member this.ValidateRequestMode : System.Web.UI.ValidateRequestMode with get, set
Public Overridable Property ValidateRequestMode As ValidateRequestMode

屬性值

決定控制項是否檢查用戶端輸入的值。A value that determines whether the control checks client input. 值可包括 DisabledEnabledInheritValues can include Disabled, Enabled, and Inherit. 預設值是Inherit,這表示控制項會從其父代取得值。The default is Inherit, which means that the control gets the value from its parent.

備註

如需要求驗證的詳細資訊,請參閱 UnvalidatedRequestValuesFor more information about request validation, see UnvalidatedRequestValues.

適用於