Seal.Model.OutputEmailDevice.Validate C# (CSharp) Method

Validate() public method

public Validate ( ) : void
return void
        public override void Validate()
        {
            if (string.IsNullOrEmpty(Server)) throw new Exception("The SMTP Server cannot be empty for an Email device.");
            if (string.IsNullOrEmpty(SenderEmail)) throw new Exception("The Email Sender cannot be empty for an Email device.");
        }