An instance of this class keeps track of model binding errors for the current request.
Model binding errors are not easily localizable. They are intercepted in Startup Configure (services.AddMvc()) and added to the error list in the ModelBindingErrorManager instance. The base controller implementation has access to the error information and can localize the error message. Components have access to the error information and can use the original "raw" value for rendering if desired. As an example, the DateEdit component uses the attempted value to render an invalid value.
Namespace: YetaWF.Core.Models
Assembly: YetaWF.Core
Inheritance
public class ModelBindingErrorManager;
ModelBindingErrorManager | Constructor. |
AttemptedValueIsInvalidMessage | Hardcoded message for SetAttemptedValueIsInvalidAccessor, which is used to later localize the message, including reference to the caption if available. |
AddError | (not specified) | |
Equals | Determines whether the specified object is equal to the current object. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. | |
GetHashCode | Serves as the default hash function. | |
GetType | Gets the Type of the current instance. | |
MemberwiseClone | Creates a shallow copy of the current Object. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. | |
ToString | Returns a string that represents the current object. | |
TryGetAttemptedValue | (not specified) |
See Also YetaWF.Core Overview
Documentation Feedback
© 2024 - Softel vdm, Inc. - YetaWF.com