コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MailKit.Net.Imap.ImapCommandException"/> class.
 /// </summary>
 /// <param name="command">The command.</param>
 /// <param name="result">The command result.</param>
 internal ImapCommandException(string command, ImapCommandResult result)
     : base(string.Format("The IMAP server replied to the '{0}' command with a '{1}' response.", command, result.ToString().ToUpperInvariant()))
 {
 }
コード例 #2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="MailKit.Net.Imap.ImapCommandException"/> class.
		/// </summary>
		/// <remarks>
		/// Creates a new <see cref="ImapCommandException"/>.
		/// </remarks>
		/// <param name="command">The command.</param>
		/// <param name="result">The command result.</param>
		internal ImapCommandException (string command, ImapCommandResult result)
			: base (string.Format ("The IMAP server replied to the '{0}' command with a '{1}' response.", command, result.ToString ().ToUpperInvariant ()))
		{
		}