//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace System.Web.UI { /// /// Defines the contract that the validation controls must implement. /// public interface IValidator { /// /// Indicates whether the content entered in a control is valid. /// bool IsValid { get; set; } /// /// Indicates the error message text generated when the control's content is not /// valid. /// string ErrorMessage { get; set; } /// /// Compares the entered content with the valid parameters provided by the /// validation control. /// void Validate(); } }