VerificationAttribute.VerificationRule 屬性

定義

取得 VerificationRule 列舉值,表示協助工具檢查點的使用方式。

public:
 property System::Web::UI::VerificationRule VerificationRule { System::Web::UI::VerificationRule get(); };
public System.Web.UI.VerificationRule VerificationRule { get; }
member this.VerificationRule : System.Web.UI.VerificationRule
Public ReadOnly Property VerificationRule As VerificationRule

屬性值

VerificationRule

其中一個 VerificationRule 列舉值。 預設值是 Required

備註

VerificationRule建立實例時 VerificationAttribute 可以設定 屬性,但為選擇性。 如果您使用不接受參數的 rule 建構函式,則會使用 的 Required 預設值。

適用於

另請參閱