Returns the code portion of the last server response.
Namespace: Jscape.FtpAssembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0
Syntax
C# |
---|
public int GetResponseCode() |
Visual Basic |
---|
Public Function GetResponseCode As Integer |
Visual C++ |
---|
public: int GetResponseCode() |
Return Value
The last server response code.
Examples
This example displays the last FTP server response code.
In this example, the response code is 200 from
the NOOP command.
CopyC#
Copy

myFtp.IssueCommand("NOOP"); System.Console.WriteLine("Response: " + myFtp.GetResponseCode());

myFtp.IssueCommand("NOOP") System.Console.WriteLine("Response: " + myFtp.GetResponseCode())