Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckResponse()

static void System.Net.Mail.DataStopCommand.CheckResponse ( SmtpStatusCode statusCode,
string serverResponse )
inlinestaticprivate

Definition at line 5 of file DataStopCommand.cs.

6 {
7 switch (statusCode)
8 {
9 case SmtpStatusCode.Ok:
10 return;
11 }
12 if (statusCode < (SmtpStatusCode)400)
13 {
14 throw new SmtpException(System.SR.net_webstatus_ServerProtocolViolation, serverResponse);
15 }
16 throw new SmtpException(statusCode, serverResponse, serverResponse: true);
17 }
static string net_webstatus_ServerProtocolViolation
Definition SR.cs:152
Definition SR.cs:7

References System.SR.net_webstatus_ServerProtocolViolation.

Referenced by System.Net.Mail.DataStopCommand.Send().