GetWebStatusCodeString() public static méthode

public static GetWebStatusCodeString ( FtpStatusCode statusCode, string statusDescription ) : string
statusCode FtpStatusCode
statusDescription string
Résultat string
Exemple #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));
 }
Exemple #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));
 }