DataAnnotationsModelValidator.GetLocalizedErrorMessage(String) 方法

定義

會收到模型的局部錯誤訊息。

protected:
 virtual System::String ^ GetLocalizedErrorMessage(System::String ^ errorMessage);
protected virtual string GetLocalizedErrorMessage(string errorMessage);
abstract member GetLocalizedErrorMessage : string -> string
override this.GetLocalizedErrorMessage : string -> string
Protected Overridable Function GetLocalizedErrorMessage (errorMessage As String) As String

參數

errorMessage
String

錯誤訊息要定位。

傳回

錯誤訊息的本地化版本。

適用於