FTPConnectionInvokeFTPCommand Method |
Invokes the given literal FTP command on the server.
Namespace:
EnterpriseDT.Net.Ftp
Assembly:
edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntaxpublic virtual FTPReply InvokeFTPCommand(
string command,
params string[] validCodes
)
Public Overridable Function InvokeFTPCommand (
command As String,
ParamArray validCodes As String()
) As FTPReply
public:
virtual FTPReply^ InvokeFTPCommand(
String^ command,
... array<String^>^ validCodes
)
abstract InvokeFTPCommand :
command : string *
validCodes : string[] -> FTPReply
override InvokeFTPCommand :
command : string *
validCodes : string[] -> FTPReply
Parameters
- command
- Type: SystemString
Command to be sent. - validCodes
- Type: SystemString
Valid return-codes (used for validating reply).
Return Value
Type:
FTPReplyThe 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:
string features = ftpConnection.InvokeFTPCommand("FEAT", "211");
The returned
string could then be parsed to obtain the supported features
of the server.
See Also