Alert event arguments.
Some IMailStore implementations, such as MailKit.Net.Imap.ImapClient, will emit Alert events when they receive alert messages from the server.
Inheritance: System.EventArgs
示例#1
0
        /// <summary>
        /// Raise the alert event.
        /// </summary>
        /// <remarks>
        /// Raises the alert event.
        /// </remarks>
        /// <param name="e">The alert event args.</param>
        protected virtual void OnAlert(AlertEventArgs e)
        {
            var handler = Alert;

            if (handler != null)
            {
                handler(this, e);
            }
        }
示例#2
0
文件: MailStore.cs 项目: dcga/MailKit
		/// <summary>
		/// Raise the alert event.
		/// </summary>
		/// <remarks>
		/// Raises the alert event.
		/// </remarks>
		/// <param name="e">The alert event args.</param>
		protected virtual void OnAlert (AlertEventArgs e)
		{
			var handler = Alert;

			if (handler != null)
				handler (this, e);
		}