ValidateMailboxSize_EventArgs.cs
上传用户:horngjaan
上传日期:2009-12-12
资源大小:2882k
文件大小:1k
源码类别:
Email服务器
开发平台:
C#
- using System;
- namespace LumiSoft.MailServer.SMTP
- {
- /// <summary>
- /// Provides data for the ValidateMailboxSize event.
- /// </summary>
- public class ValidateMailboxSize_EventArgs
- {
- private string m_eAddress = "";
- private long m_MsgSize = 0;
- private bool m_IsValid = true;
- /// <summary>
- /// Default constructor.
- /// </summary>
- /// <param name="eAddress">Email address of recipient.</param>
- /// <param name="messageSize">Message size.</param>
- public ValidateMailboxSize_EventArgs(string eAddress,long messageSize)
- {
- m_eAddress = eAddress;
- m_MsgSize = messageSize;
- }
- #region Properties Implementation
- /// <summary>
- /// Email address which mailbox size to check.
- /// </summary>
- public string eAddress
- {
- get{ return m_eAddress; }
- }
- /// <summary>
- /// Message size.NOTE: value 0 means that size is unknown.
- /// </summary>
- public long MessageSize
- {
- get{ return m_MsgSize; }
- }
- /// <summary>
- /// Gets or sets if mailbox size is valid.
- /// </summary>
- public bool IsValid
- {
- get{ return m_IsValid; }
- set{ m_IsValid = value; }
- }
- #endregion
- }
- }