SaaS CMS has officially launched! Learn more now.

Interface IValidator

Defines the properties and methods that objects that participate in validation must implement.

Namespace: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 11.8.3
Syntax
public interface IValidator

Properties

ErrorMessage

Gets or sets the error message.

Declaration
string ErrorMessage { get; set; }
Property Value
Type Description
System.String

The error message.

IsValid

Gets or sets a value indicating whether this instance is valid.

Declaration
bool IsValid { get; set; }
Property Value
Type Description
System.Boolean

true if this instance is valid; otherwise, false.

Methods

Validate()

Validates this instance.

Declaration
void Validate()