ModelDataErrorValidateProperty Method

Validates a property with a specified name and a given input value.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public bool ValidateProperty(
	Object? value,
	string propertyName = ""
)

Parameters

value  Object
The value to test for the specified property.
propertyName  String  (Optional)
The name of the property to validate.

Return Value

Boolean
if the value is valid, if any errors are found.

See Also