1 type derived from SmtpFailedRecipientException
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
13
public class SmtpFailedRecipientsException :
SmtpFailedRecipientException
1 instantiation of SmtpFailedRecipientException
System.Net.Mail (1)
System\Net\Mail\SmtpTransport.cs (1)
129
new
SmtpFailedRecipientException
(_connection.Reader!.StatusCode, smtpAddress, response));
23 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 (21)
System\Net\Mail\SmtpClient.cs (4)
496
List<
SmtpFailedRecipientException
>? failedRecipientExceptions = null;
531
var
e = failedRecipientExceptions.Count == 1
544
if (e is
SmtpFailedRecipientException
&& !((
SmtpFailedRecipientException
)e).fatal)
System\Net\Mail\SmtpFailedRecipientsException.cs (14)
15
private readonly
SmtpFailedRecipientException
[] _innerExceptions;
19
_innerExceptions = Array.Empty<
SmtpFailedRecipientException
>();
24
_innerExceptions = Array.Empty<
SmtpFailedRecipientException
>();
29
SmtpFailedRecipientException
? smtpException = innerException as
SmtpFailedRecipientException
;
30
_innerExceptions = smtpException == null ? Array.Empty<
SmtpFailedRecipientException
>() : new
SmtpFailedRecipientException
[] { smtpException };
37
_innerExceptions = (
SmtpFailedRecipientException
[])info.GetValue("innerExceptions", typeof(
SmtpFailedRecipientException
[]))!;
40
public SmtpFailedRecipientsException(string? message,
SmtpFailedRecipientException
[] innerExceptions) :
45
_innerExceptions = innerExceptions ?? Array.Empty<
SmtpFailedRecipientException
>();
48
internal SmtpFailedRecipientsException(List<
SmtpFailedRecipientException
> innerExceptions, bool allFailed) :
58
public
SmtpFailedRecipientException
[] InnerExceptions
71
serializationInfo.AddValue("innerExceptions", _innerExceptions, typeof(
SmtpFailedRecipientException
[]));
System\Net\Mail\SmtpTransport.cs (3)
112
internal async Task<(MailWriter, List<
SmtpFailedRecipientException
>?)> SendMailAsync<TIOAdapter>(MailAddress sender, MailAddressCollection recipients, string deliveryNotify, bool allowUnicode, CancellationToken cancellationToken = default)
119
List<
SmtpFailedRecipientException
>? failedRecipientExceptions = null;
135
var
exception = failedRecipientExceptions.Count == 1