AttributeAdapterBase<TAttribute>.GetErrorMessage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the error message.
public:
abstract System::String ^ GetErrorMessage(Microsoft::AspNetCore::Mvc::ModelBinding::Validation::ModelValidationContextBase ^ validationContext);
public abstract string GetErrorMessage (Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase validationContext);
override this.GetErrorMessage : Microsoft.AspNetCore.Mvc.ModelBinding.Validation.ModelValidationContextBase -> string
Public MustOverride Function GetErrorMessage (validationContext As ModelValidationContextBase) As String
Parameters
- validationContext
- ModelValidationContextBase
The context to use in message creation.
Returns
The localized error message.
Implements
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for