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
ファイル: MailStore.cs プロジェクト: vnisor/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);
            }
        }
コード例 #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);
		}