1 type derived from SmtpFailedRecipientException
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
13public class SmtpFailedRecipientsException : SmtpFailedRecipientException
3 instantiations of SmtpFailedRecipientException
System.Net.Mail (3)
System\Net\Mail\SmtpTransport.cs (3)
211new SmtpFailedRecipientException(_connection.Reader!.StatusCode, smtpAddress, response)); 329_failedRecipientExceptions.Add(new SmtpFailedRecipientException(_connection.Reader!.StatusCode, 347new SmtpFailedRecipientException(thisPtr._connection.Reader!.StatusCode,
35 references to SmtpFailedRecipientException
netstandard (1)
netstandard.cs (1)
1181[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.SmtpFailedRecipientException))]
System (1)
src\libraries\shims\System\ref\System.cs (1)
667[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Mail.SmtpFailedRecipientException))]
System.Net.Mail (33)
System\Net\Mail\SmtpClient.cs (8)
62private SmtpFailedRecipientException? _failedRecipientException; 418SmtpFailedRecipientException? recipientException = null; 513if (e is SmtpFailedRecipientException && !((SmtpFailedRecipientException)e).fatal) 665if (e is SmtpFailedRecipientException && !((SmtpFailedRecipientException)e).fatal) 845else if (exception != null && (!(exception is SmtpFailedRecipientException) || ((SmtpFailedRecipientException)exception).fatal))
System\Net\Mail\SmtpFailedRecipientsException.cs (14)
15private readonly SmtpFailedRecipientException[] _innerExceptions; 19_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 24_innerExceptions = Array.Empty<SmtpFailedRecipientException>(); 29SmtpFailedRecipientException? smtpException = innerException as SmtpFailedRecipientException; 30_innerExceptions = smtpException == null ? Array.Empty<SmtpFailedRecipientException>() : new SmtpFailedRecipientException[] { smtpException }; 37_innerExceptions = (SmtpFailedRecipientException[])info.GetValue("innerExceptions", typeof(SmtpFailedRecipientException[]))!; 40public SmtpFailedRecipientsException(string? message, SmtpFailedRecipientException[] innerExceptions) : 45_innerExceptions = innerExceptions ?? Array.Empty<SmtpFailedRecipientException>(); 48internal SmtpFailedRecipientsException(List<SmtpFailedRecipientException> innerExceptions, bool allFailed) : 58public SmtpFailedRecipientException[] InnerExceptions 71serializationInfo.AddValue("innerExceptions", _innerExceptions, typeof(SmtpFailedRecipientException[]));
System\Net\Mail\SmtpTransport.cs (11)
21private readonly List<SmtpFailedRecipientException> _failedRecipientExceptions = new List<SmtpFailedRecipientException>(); 194bool allowUnicode, out SmtpFailedRecipientException? exception) 246private readonly List<SmtpFailedRecipientException> _failedRecipientExceptions = new List<SmtpFailedRecipientException>(); 277&& (!(sendMailResult is SmtpFailedRecipientException) 278|| ((SmtpFailedRecipientException)sendMailResult).fatal)) 353SmtpFailedRecipientException exception = thisPtr._toCollection.Count == 1 ? 354(SmtpFailedRecipientException)thisPtr._failedRecipientExceptions[0] : 423internal SmtpFailedRecipientException? GetFailedRecipientException() 427return (SmtpFailedRecipientException)_failedRecipientExceptions[0];