/// <summary> /// Default constructor. /// </summary> /// <param name="filedName">Header field name. For example: "To".</param> /// <param name="values">Addresses collection.</param> /// <exception cref="ArgumentNullException">Is raised when <b>filedName</b> or <b>values</b> is null reference.</exception> /// <exception cref="ArgumentException">Is raised when any of the arguments has invalid value.</exception> public Mail_h_MailboxList(string filedName, Mail_t_MailboxList values) { if (filedName == null) { throw new ArgumentNullException("filedName"); } if (filedName == string.Empty) { throw new ArgumentException("Argument 'filedName' value must be specified."); } if (values == null) { throw new ArgumentNullException("values"); } m_Name = filedName; m_pAddresses = values; }
/// <summary> /// Default constructor. /// </summary> /// <param name="filedName">Header field name. For example: "To".</param> /// <param name="values">Addresses collection.</param> /// <exception cref="ArgumentNullException">Is raised when <b>filedName</b> or <b>values</b> is null reference.</exception> /// <exception cref="ArgumentException">Is raised when any of the arguments has invalid value.</exception> public Mail_h_MailboxList(string filedName, Mail_t_MailboxList values) { if (filedName == null) { throw new ArgumentNullException("filedName"); } if (filedName == string.Empty) { throw new ArgumentException("Argument 'filedName' value must be specified."); } if (values == null) { throw new ArgumentNullException("values"); } m_Name = filedName; m_pAddresses = values; }