Back to product page
- Introduction
- License agreement
- Classes
- Enumerations
- Exceptions
- WeOnlyDo.Client.FtpDLX
- Properties
- Authentication
- Blocking
- BufferSize
- Certificate
- Compression
- DirFormat
- DirItems
- Encryption
- Hostname
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalPath
- Login
- MaxTransferRate
- Passive
- Password
- Port
- PreserveDates
- PrivateKey
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- PublicKeyOpenSSH
- PublicKeySSH
- RemotePath
- Resume
- SecureMethod
- SmartGet
- SmartPut
- State
- StrictHost
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- Version
- Methods
- Events
- Properties
- WeOnlyDo.Client.DirItemsCollection
- WeOnlyDo.Client.DirItem
- How to get support?
PreTranslateCommandEvent event
Fires before command is sent to FTP server.
Syntax
- C#
- VB.NET
delegate void PreTranslateCommandDelegate(object Sender, FtpReplyArgs Args);
The PreTranslateCommandEvent(Args.Command,Args.ReplyCode,Args.ReplyText) syntax has these parts:
The PreTranslateCommandEvent(Args.Command,Args.ReplyCode,Args.ReplyText) syntax has these parts:
Args.Command | String. Command executed by wodFtpDLX.NET. |
Args.ReplyCode | Integer. Holds reply code returned by the server. |
Args.ReplyText | String. Full reply as returned by the server. |
Delegate Sub PreTranslateCommandDelegate(ByVal Sender As Object, ByVal Args As FtpReplyArgs)
The PreTranslateCommandEvent(Args.Command,Args.ReplyCode,Args.ReplyText) syntax has these parts:
The PreTranslateCommandEvent(Args.Command,Args.ReplyCode,Args.ReplyText) syntax has these parts:
Args.Command | String. Command executed by wodFtpDLX.NET. |
Args.ReplyCode | Integer. Holds reply code returned by the server. |
Args.ReplyText | String. Full reply as returned by the server. |
Remarks
This event can be used for monitoring commands that are sent to FTP (or FTPS) server before they are actually transmitted. At this point, you can change this Args.Command data and it will be sent as you define it - without wodFtpDLX.NET knowing anything about it.Beware - what you're doing here is dangerous for wodFtpDLX.NET. You may break its internal mechanism of behavior, and strange results may occur. But - to provide you with more freedom over what's going on 'under the hood', we have provided this event for advanced users.
Note - this event will not fire in SFTP protocol.