Invokes the given literal FTP command on the server.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public virtual FTPReply InvokeFTPCommand( string command, params string[] validCodes ) |
Visual Basic |
---|
Public Overridable Function InvokeFTPCommand ( _ command As String, _ ParamArray validCodes As String() _ ) As FTPReply |
Visual C++ |
---|
public: virtual FTPReply^ InvokeFTPCommand( String^ command, ... array<String^>^ validCodes ) |
Parameters
- command
- Type: System..::..String
Command to be sent.
- validCodes
- Type: array<System..::..String>[]()[][]
Valid return-codes (used for validating reply).
Return Value
The reply returned by the server.Remarks
If a particular FTP command is not supported by FTPConnection, this method may sometimes be used to invoke the command. This will only work for simple commands that don't require special processing.
An example of an FTP command that could be invoked using this method is the FEAT command (which is actually behind the GetFeatures()()()() method. This would be done as follows:
Copy | |
---|---|
string features = ftpConnection.InvokeFTPCommand("FEAT", "211"); |