46 references to Format
System.Net.Mail (46)
System\Net\BufferBuilder.cs (1)
97
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, c));
System\Net\Mail\DomainLiteralReader.cs (2)
78
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
97
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter,
System\Net\Mail\DotAtomReader.cs (3)
60
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
72
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.ConsecutiveDots));
85
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.Dot));
System\Net\Mail\MailAddress.cs (3)
189
throw new SmtpException(SR.
Format
(SR.SmtpNonAsciiUserNotSupported, Address));
216
throw new SmtpException(SR.
Format
(SR.SmtpInvalidHostName, Address), argEx);
222
throw new SmtpException(SR.
Format
(SR.SmtpInvalidHostName, Address));
System\Net\Mail\MailAddressParser.cs (3)
138
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter,
318
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
401
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\MailBnfHelper.cs (6)
128
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[offset]));
140
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[offset]));
197
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[offset]));
202
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[offset]));
236
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, span[i]));
348
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, ch));
System\Net\Mail\QuotedPairReader.cs (1)
61
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\QuotedStringFormatReader.cs (3)
83
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
102
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.Quote));
165
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\SmtpException.cs (2)
17
return GetMessageForStatus(statusCode) + " " + SR.
Format
(SR.MailServerResponse, serverResponse);
108
internal SmtpException(string message, string? serverResponse) : base(message + " " + SR.
Format
(SR.MailServerResponse, serverResponse))
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
88
throw new IOException(SR.
Format
(SR.net_io_readfailure, SR.net_io_connectionclosed));
284
throw new IOException(SR.
Format
(SR.net_io_readfailure, SR.net_io_connectionclosed));
System\Net\Mail\WhitespaceReader.cs (3)
157
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter,
179
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data[index]));
206
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.EndComment));
System\Net\Mime\ContentDisposition.cs (1)
284
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, _disposition[offset - 1]));
System\Net\Mime\MimePart.cs (1)
99
throw new NotSupportedException(SR.
Format
(SR.MimeTransferEncodingNotSupported, value));
System\Net\Mime\QEncodedStream.cs (6)
96
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b1));
98
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b2));
113
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b1));
115
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b2));
166
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b1));
168
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b2));
System\Net\Mime\QuotedPrintableStream.cs (6)
125
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b1));
127
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b2));
142
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b1));
144
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b2));
187
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b1));
189
throw new FormatException(SR.
Format
(SR.InvalidHexDigit, b2));
System\Net\Mime\SmtpDateTime.cs (3)
218
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, value));
243
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data));
253
throw new FormatException(SR.
Format
(SR.MailHeaderFieldInvalidCharacter, data));