Example #1
0
        public MailboxBase(MailAccountBase account, MailAddressBase address, List<MailAddressBase> aliases)
        {
            if (account == null)
                throw new ArgumentException("Invalid account", "account");

            if (address == null)
                throw new ArgumentException("Invalid address", "address");

            if (aliases == null)
                throw new ArgumentException("Invalid aliases", "aliases");

            Account = account;
            Address = address;
            Aliases = aliases;
        }
Example #2
0
        public MailboxBase(MailAccountBase account, MailAddressBase address, List <MailAddressBase> aliases)
        {
            if (account == null)
            {
                throw new ArgumentException("Invalid account", "account");
            }

            if (address == null)
            {
                throw new ArgumentException("Invalid address", "address");
            }

            if (aliases == null)
            {
                throw new ArgumentException("Invalid aliases", "aliases");
            }

            Account = account;
            Address = address;
            Aliases = aliases;
        }