StringLengthAttribute.FormatErrorMessage(String) メソッド

定義

指定したエラー メッセージに書式を適用します。

public:
 override System::String ^ FormatErrorMessage(System::String ^ name);
public override string FormatErrorMessage(string name);
override this.FormatErrorMessage : string -> string
Public Overrides Function FormatErrorMessage (name As String) As String

パラメーター

name
String

検証エラーの原因となったフィールドの名前。

返品

書式設定されたエラー メッセージ。

例外

maximumLength が負の値です。

-または-

maximumLengthminimumLength未満です。

現在の属性の形式が正しくありません。

適用対象