46 references to Format
System.Net.Mail (46)
System\Net\BufferBuilder.cs (1)
98throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, c));
System\Net\Mail\DomainLiteralReader.cs (2)
78throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 97throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter,
System\Net\Mail\DotAtomReader.cs (3)
60throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 72throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.ConsecutiveDots)); 85throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.Dot));
System\Net\Mail\MailAddress.cs (3)
200throw new SmtpException(SR.Format(SR.SmtpNonAsciiUserNotSupported, Address)); 227throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address), argEx); 233throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address));
System\Net\Mail\MailAddressParser.cs (3)
152throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, 332throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 415throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\MailBnfHelper.cs (6)
128throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 140throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 197throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 202throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[offset])); 236throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, span[i])); 348throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, ch));
System\Net\Mail\QuotedPairReader.cs (1)
61throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\QuotedStringFormatReader.cs (3)
83throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 102throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.Quote)); 165throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index]));
System\Net\Mail\SmtpException.cs (2)
17return GetMessageForStatus(statusCode) + " " + SR.Format(SR.MailServerResponse, serverResponse); 113internal SmtpException(string message, string? serverResponse) : base(message + " " + SR.Format(SR.MailServerResponse, serverResponse))
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
92throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 282throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed));
System\Net\Mail\WhitespaceReader.cs (3)
157throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, 179throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 206throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, MailBnfHelper.EndComment));
System\Net\Mime\ContentDisposition.cs (1)
284throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, _disposition[offset - 1]));
System\Net\Mime\MimePart.cs (1)
99throw new NotSupportedException(SR.Format(SR.MimeTransferEncodingNotSupported, value));
System\Net\Mime\QEncodedStream.cs (6)
97throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 99throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 114throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)ReadState.Byte)); 116throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 167throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 169throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 2]));
System\Net\Mime\QuotedPrintableStream.cs (6)
126throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 128throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 143throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)ReadState.Byte)); 145throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source])); 188throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 1])); 190throw new FormatException(SR.Format(SR.InvalidHexDigit, (char)buffer[source + 2]));
System\Net\Mime\SmtpDateTime.cs (3)
218throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, value)); 243throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data)); 253throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data));