MaxLengthAttributeAdapter クラス

定義

MaxLengthAttribute 属性のアダプターを提供します。

public ref class MaxLengthAttributeAdapter sealed : System::Web::ModelBinding::DataAnnotationsModelValidator<System::ComponentModel::DataAnnotations::MaxLengthAttribute ^>
public sealed class MaxLengthAttributeAdapter : System.Web.ModelBinding.DataAnnotationsModelValidator<System.ComponentModel.DataAnnotations.MaxLengthAttribute>
type MaxLengthAttributeAdapter = class
    inherit DataAnnotationsModelValidator<MaxLengthAttribute>
Public NotInheritable Class MaxLengthAttributeAdapter
Inherits DataAnnotationsModelValidator(Of MaxLengthAttribute)
継承

コンストラクター

MaxLengthAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, MaxLengthAttribute)

MaxLengthAttributeAdapter クラスの新しいインスタンスを初期化します。

プロパティ

Attribute

検証属性を取得します。

(継承元 DataAnnotationsModelValidator<TAttribute>)
ErrorMessage

検証エラーのエラー メッセージを取得します。

(継承元 DataAnnotationsModelValidator)
IsRequired

モデルが必要かどうか (つまり、Attribute プロパティの検証属性が RequiredAttribute 属性かどうか) を示す値を取得します。

(継承元 DataAnnotationsModelValidator)
Metadata

派生クラスで実装された場合、モデルの検証コントロール用のメタデータを取得します。

(継承元 ModelValidator)
ModelBindingExecutionContext

派生クラスで実装されている場合に、実行コンテキストを取得します。

(継承元 ModelValidator)

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetLocalizedErrorMessage(String)

モデルのローカライズされたエラー メッセージを取得します。

(継承元 DataAnnotationsModelValidator)
GetLocalizedString(String, Object[])

特定の文字列のローカライズ版を取得します。

(継承元 DataAnnotationsModelValidator)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
Validate(Object)

モデルの検証エラー メッセージの一覧を返します。

(継承元 DataAnnotationsModelValidator)

適用対象