Example #1
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="message">Message to delete.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>message</b> is null reference.</exception>
        internal POP3_e_DeleteMessage(POP3_ServerMessage message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            m_pMessage = message;
        }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="message">Message which top data to get.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>message</b> is null reference.</exception>
        internal POP3_e_GetMessageStream(POP3_ServerMessage message)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }

            m_pMessage = message;
        }
Example #3
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="message">Message which top data to get.</param>
        /// <param name="lines">Number of message-body lines to get.</param>
        /// <exception cref="ArgumentNullException">Is raised when <b>message</b> is null reference.</exception>
        /// <exception cref="ArgumentException">Is raised when any of the arguments has invalid value.</exception>
        internal POP3_e_GetTopOfMessage(POP3_ServerMessage message, int lines)
        {
            if (message == null)
            {
                throw new ArgumentNullException("message");
            }
            if (lines < 0)
            {
                throw new ArgumentException("Argument 'lines' value must be >= 0.", "lines");
            }

            m_pMessage  = message;
            m_LineCount = lines;
        }