GetWebStatusCodeString() public static method

public static GetWebStatusCodeString ( FtpStatusCode statusCode, string statusDescription ) : string
statusCode FtpStatusCode
statusDescription string
return string
Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }