Skip to main content

ValidationErrorInfo Methods

An object defining methods for the ValidationErrorInfo class.

Equals(obj)

Determines whether the specified object is equal to the current ValidationErrorInfo instance. Overrides Equals from Object.

Parameters:

obj (required): object
Compare object instance

Returns:

Type: bool
Returns true if objects equal, otherwise false.

This is a sync method. Method runs synchronously.


ToString()

Returns a string representation of the validation error information, including code, message, and member name.

Returns:

Type: string
Returns a string that contains Code, Message and MemberName properties.

This is a sync method. Method runs synchronously.


GetHashCode()

Returns a hash code for the current ValidationErrorInfo instance. Overrides GetHashCode from Object.

Returns:

Type: int
Returns calculated hashcode

This is a sync method. Method runs synchronously.