Bagikan melalui


IAttributeAdapter.GetErrorMessage(ModelValidationContextBase) Metode

Definisi

Mendapatkan pesan kesalahan.

public:
 System::String ^ GetErrorMessage(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationContextBase ^ validationContext);
public string GetErrorMessage (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase validationContext);
abstract member GetErrorMessage : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase -> string
Public Function GetErrorMessage (validationContext As ModelValidationContextBase) As String

Parameter

validationContext
ModelValidationContextBase

Konteks yang digunakan dalam pembuatan pesan.

Mengembalikan

Pesan kesalahan yang dilokalkan.

Berlaku untuk