46 references to Format
System.Net.Mail (46)
System\Net\BufferBuilder.cs (1)
97throw 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)
189throw new SmtpException(SR.Format(SR.SmtpNonAsciiUserNotSupported, Address)); 216throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address), argEx); 222throw new SmtpException(SR.Format(SR.SmtpInvalidHostName, Address));
System\Net\Mail\MailAddressParser.cs (3)
138throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, 318throw new FormatException(SR.Format(SR.MailHeaderFieldInvalidCharacter, data[index])); 401throw 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); 108internal SmtpException(string message, string? serverResponse) : base(message + " " + SR.Format(SR.MailServerResponse, serverResponse))
System\Net\Mail\SmtpReplyReaderFactory.cs (2)
88throw new IOException(SR.Format(SR.net_io_readfailure, SR.net_io_connectionclosed)); 284throw 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)
96throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 98throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 113throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 115throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 166throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 168throw new FormatException(SR.Format(SR.InvalidHexDigit, b2));
System\Net\Mime\QuotedPrintableStream.cs (6)
125throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 127throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 142throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 144throw new FormatException(SR.Format(SR.InvalidHexDigit, b2)); 187throw new FormatException(SR.Format(SR.InvalidHexDigit, b1)); 189throw new FormatException(SR.Format(SR.InvalidHexDigit, b2));
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));