ModelDataErrorClearErrors Method

Clears the validation errors for a specified property or for the entire entity.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
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.

See Also