19 references to Format
System.Net.Requests (19)
src\libraries\Common\src\System\Net\HttpValidationHelpers.cs (2)
13throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name)); 19throw new ArgumentException(SR.Format(SR.net_WebHeaderInvalidHeaderChars, name), nameof(name));
System\Net\Cache\HttpRequestCachePolicy.cs (2)
38throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl)); 64throw new ArgumentException(SR.Format(SR.net_invalid_enum, nameof(HttpCacheAgeControl)), nameof(cacheAgeControl));
System\Net\CommandStream.cs (1)
144return new WebException(SR.Format(SR.net_ftp_servererror, NetRes.GetWebStatusCodeString(code, statusDescription)),
System\Net\FileWebRequest.cs (2)
112new WebException(SR.Format(SR.net_requestaborted, WebExceptionStatus.RequestCanceled), WebExceptionStatus.RequestCanceled); 468throw 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); 910throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 996throw new FormatException(SR.Format(SR.net_ftp_invalid_response_filename, filename)); 1003throw new FormatException(SR.Format(SR.net_ftp_invalid_response_filename, filename)); 1062throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 1084throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString)); 1091throw new FormatException(SR.Format(SR.net_ftp_response_invalid_format, responseString));
System\Net\FtpWebRequest.cs (3)
691throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetResponse")); 815throw 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)
1176throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetRequestStream")); 1449throw new InvalidOperationException(SR.Format(SR.net_io_invalidendcall, "EndGetResponse"));