GetWebStatusCodeString() public static method

public static GetWebStatusCodeString ( FtpStatusCode statusCode, string statusDescription ) : string
statusCode FtpStatusCode
statusDescription string
return string
示例#1
0
 protected Exception GenerateException(FtpStatusCode code, string?statusDescription, Exception?innerException)
 {
     return(new WebException(SR.Format(SR.net_ftp_servererror, NetRes.GetWebStatusCodeString(code, statusDescription)),
                             innerException, WebExceptionStatus.ProtocolError, null));
 }
示例#2
0
 protected Exception GenerateException(FtpStatusCode code, string statusDescription, Exception innerException)
 {
     return(new WebException(SR.GetString("net_servererror", new object[] { NetRes.GetWebStatusCodeString(code, statusDescription) }), innerException, WebExceptionStatus.ProtocolError, null));
 }