共用方式為


ModelMetadata.RequestValidationEnabled 屬性

定義

取得或設定值,這個值會指定是否啟用要求驗證。

public:
 virtual property bool RequestValidationEnabled { bool get(); void set(bool value); };
public virtual bool RequestValidationEnabled { get; set; }
member this.RequestValidationEnabled : bool with get, set
Public Overridable Property RequestValidationEnabled As Boolean

屬性值

如果啟用要求驗證,則為 true,否則為 false。 預設為 true

適用於