共用方式為


ModelMetadata.RequestValidationEnabled 屬性

定義

取得或設定值,這個值表示是否已啟用要求驗證。

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

屬性值

如果已啟用要求驗證,則為 true;否則為 false。

適用於