ModelDataErrorClearErrors Method
Clears the validation errors for a specified property or for the entire entity.
Namespace: Common.Core.ClassesAssembly: Common.Core (in Common.Core.dll) Version: 2.1.5
public void ClearErrors(
string? propertyName = null
)
Parameters
- propertyName String (Optional)
- The name of the property to clear validation errors for.
If a or empty name is used, all entity-level errors will be cleared.