NAnt.Core.Tasks.MailTask.Initialize C# (CSharp) Method

Initialize() protected method

Initializes task and ensures the supplied attributes are valid.
protected Initialize ( ) : void
return void
        protected override void Initialize()
        {
            if (StringUtils.IsNullOrEmpty(ToList) && StringUtils.IsNullOrEmpty(CcList) && StringUtils.IsNullOrEmpty(BccList)) {
                throw new BuildException("There must be at least one name in"
                    + " the \"tolist\", \"cclist\" or \"bcclist\" attributes"
                    + " of the <mail> task.", Location);
            }
        }