1 type derived from SmtpFailedRecipientException
System.Net.Mail (1)
System\Net\Mail\SmtpFailedRecipientsException.cs (1)
13
public class SmtpFailedRecipientsException :
SmtpFailedRecipientException
3 instantiations of SmtpFailedRecipientException
System.Net.Mail (3)
System\Net\Mail\SmtpTransport.cs (3)
211
new
SmtpFailedRecipientException
(_connection.Reader!.StatusCode, smtpAddress, response));
329
_failedRecipientExceptions.Add(new
SmtpFailedRecipientException
(_connection.Reader!.StatusCode,
347
new
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)
62
private
SmtpFailedRecipientException
? _failedRecipientException;
418
SmtpFailedRecipientException
? recipientException = null;
513
if (e is
SmtpFailedRecipientException
&& !((
SmtpFailedRecipientException
)e).fatal)
665
if (e is
SmtpFailedRecipientException
&& !((
SmtpFailedRecipientException
)e).fatal)
845
else if (exception != null && (!(exception is
SmtpFailedRecipientException
) || ((
SmtpFailedRecipientException
)exception).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 (11)
21
private readonly List<
SmtpFailedRecipientException
> _failedRecipientExceptions = new List<
SmtpFailedRecipientException
>();
194
bool allowUnicode, out
SmtpFailedRecipientException
? exception)
246
private readonly List<
SmtpFailedRecipientException
> _failedRecipientExceptions = new List<
SmtpFailedRecipientException
>();
277
&& (!(sendMailResult is
SmtpFailedRecipientException
)
278
|| ((
SmtpFailedRecipientException
)sendMailResult).fatal))
353
SmtpFailedRecipientException
exception = thisPtr._toCollection.Count == 1 ?
354
(
SmtpFailedRecipientException
)thisPtr._failedRecipientExceptions[0] :
423
internal
SmtpFailedRecipientException
? GetFailedRecipientException()
427
return (
SmtpFailedRecipientException
)_failedRecipientExceptions[0];