Dela via


IAttributeAdapter.GetErrorMessage(ModelValidationContextBase) Method

Definition

Gets the error message.

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

Parameters

validationContext
ModelValidationContextBase

The context to use in message creation.

Returns

The localized error message.

Applies to