RequiredAttributeAdapter クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
RequiredAttributeAttribute 属性のアダプターを提供します。
public class RequiredAttributeAdapter : System.Web.Mvc.DataAnnotationsModelValidator<System.ComponentModel.DataAnnotations.RequiredAttribute>
type RequiredAttributeAdapter = class
inherit DataAnnotationsModelValidator<RequiredAttribute>
Public Class RequiredAttributeAdapter
Inherits DataAnnotationsModelValidator(Of RequiredAttribute)
- 継承
-
RequiredAttributeAdapter
コンストラクター
RequiredAttributeAdapter(ModelMetadata, ControllerContext, RequiredAttribute) |
RequiredAttributeAttribute クラスの新しいインスタンスを初期化します。 |
プロパティ
Attribute |
モデルの検証コントロールから検証属性を取得します。 (継承元 DataAnnotationsModelValidator<TAttribute>) |
ControllerContext |
コントローラー コンテキストを取得します。 (継承元 ModelValidator) |
ErrorMessage |
検証エラーのエラー メッセージを取得します。 (継承元 DataAnnotationsModelValidator) |
IsRequired |
モデルの検証が必要であるかどうかを示す値を取得します。 (継承元 DataAnnotationsModelValidator) |
Metadata |
モデルの検証コントロール用のメタデータを取得します。 (継承元 ModelValidator) |
メソッド
GetClientValidationRules() |
必須値のクライアント検証規則の一覧を取得します。 |
Validate(Object) |
モデルの検証エラー メッセージの一覧を返します。 (継承元 DataAnnotationsModelValidator) |