19 references to Format
System.Net.Requests (19)
src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (2)
13
throw new ArgumentException(SR.
Format
(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name));
19
throw new ArgumentException(SR.
Format
(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name));
System\Net\Cache\HttpRequestCachePolicy.cs (2)
38
throw new ArgumentException(SR.
Format
(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl));
64
throw new ArgumentException(SR.
Format
(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl));
System\Net\CommandStream.cs (1)
144
return new WebException(SR.
Format
(SR.net_ftp_servererror, NetRes.GetWebStatusCodeString(code, statusDescription)),
System\Net\FileWebRequest.cs (2)
112
new WebException(SR.
Format
(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
468
throw new WebException(SR.
Format
(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled);
System\Net\FtpControlStream.cs (7)
678
_abortReason = SR.
Format
(SR.net_ftp_server_failed_passive, response.Status);
910
throw new FormatException(SR.
Format
(SR.net_ftp_response_invalid_format, responseString));
996
throw new FormatException(SR.
Format
(SR.net_ftp_invalid_response_filename, filename));
1003
throw new FormatException(SR.
Format
(SR.net_ftp_invalid_response_filename, filename));
1062
throw new FormatException(SR.
Format
(SR.net_ftp_response_invalid_format, responseString));
1084
throw new FormatException(SR.
Format
(SR.net_ftp_response_invalid_format, responseString));
1091
throw new FormatException(SR.
Format
(SR.net_ftp_response_invalid_format, responseString));
System\Net\FtpWebRequest.cs (3)
691
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, "EndGetResponse"));
815
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, "EndGetResponse"));
1114
_exception = new WebException(SR.
Format
(SR.net_ftp_servererror, connection.StatusLine), exception, WebExceptionStatus.ProtocolError, _ftpWebResponse);
System\Net\HttpWebRequest.cs (2)
1176
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, "EndGetRequestStream"));
1449
throw new InvalidOperationException(SR.
Format
(SR.net_io_invalidendcall, "EndGetResponse"));