DataAnnotationsModelValidator.GetLocalizedErrorMessage(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會收到模型的局部錯誤訊息。
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
錯誤訊息要定位。
傳回
錯誤訊息的本地化版本。