Back to product page
- Introduction
- License agreement
- Getting Started
- Objects
- Enumerations
- wodFtpDLX
- Methods
- Abort
- About
- AppendData
- AppendFile
- AppendFileFrom
- CheckDir
- ClearCommandChannel
- Connect
- DeleteFile
- DeleteFiles
- Disconnect
- GetAttributes
- GetData
- GetDate
- GetFile
- GetFileAt
- GetFileAt64
- GetFiles
- GetSize
- ListDir
- ListNames
- LocalCRC
- LoopFiles
- MakeDir
- PutData
- PutFile
- PutFileAt
- PutFileAt64
- PutFiles
- RawReceived
- RawSend
- Refresh
- RemoteCRC
- RemoveDir
- Rename
- SetAttributes
- SetAttributes64
- Site
- Properties
- Account
- Arrange
- AscIITranslation
- Authentication
- BackColor
- Blocking
- BorderVisible
- BufferSize
- Certificate
- ClientName
- ColumnCount
- ColumnHeader
- Columns
- ColumnWidth
- Compression
- ContextMenu
- DirFormat
- DirItems
- Enabled
- Encryption
- EncryptionList
- ErrorText
- FIPS
- ForeColor
- HMacList
- Hostname
- IconView
- ItemSkip
- KeepAlive
- LastError
- ListItem
- ListParams
- LocalCertBag
- LocalPath
- Login
- MaxDataPort
- MaxTransferRate
- MinDataPort
- MyHostname
- MyIP
- Notification
- Passive
- Password
- PasvPort
- Port
- Protocol
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RemotePath
- Resume
- SecureMethod
- ShellIcons
- SmartGet
- SmartPut
- SortItems
- SSLCipherList
- State
- StateText
- StrictHost
- TabStop
- Tag
- Timeout
- Timezone
- TransferMode
- TransferRate
- TransferTime
- UseIPv6
- UTF8Encoding
- Version
- Events
- ActionCopy
- ActionDelete
- ActionDownload
- ActionMakeDir
- ActionNewFile
- ActionPaste
- ActionProperties
- ActionRename
- ActionSelect
- AfterViewChange
- Attributes
- Attributes64
- Banner
- BeforeViewChange
- Click
- ClientCertRequired
- Connected
- CryptoInformation
- DblClick
- Disconnected
- Done
- FileTransferData
- Focus
- FTPReply
- HostCertificate
- HostFingerprint
- KeyPress
- ListItems
- LoginChallenge
- LoopError
- LoopItem
- MenuClick
- PreTranslateCommand
- PreTranslateReply
- Progress
- Progress64
- ShowContextMenu
- SiteReply
- StateChange
- Methods
- IwodFtpNotify
- DirItem
- DirItems
- How to get support?
- Technical information
- Fast notifications interface
- Error list
- How to...
Notification property
Fast notification interface to use instead of events.
Type
An IwodFtpNotify object.Syntax
- Basic
[Set]object.Notification[= IwodFtpNotify]
The Notification(object,IwodFtpNotify) syntax has these parts:
The Notification(object,IwodFtpNotify) syntax has these parts:
object | An expression evaluating to an object of type wodFtpDLXCom. |
IwodFtpNotify | An IwodFtpNotify object. Reference to object that implements this interface. |
Remarks
Available only in Component (DLL, windowless) version! Notification property holds reference to IwodFtpNotify interface that can be implemented by your application. When this property is set, and contains such a reference, wodFtpDLXCom will call your method implementations instead of firing events. More information on how this works can be found here. For example, instead of having this in your code (VB example):Private Sub Ftp1_Connected(ByVal ErrorCode As Long, ByVal ErrorText As String)
End Sub
you will have this:
Private Sub IwodFtpNotify_Connected(ByVal Owner As wodFtpDLXComLib.IwodFtpDLXCom, ByVal ErrorCode As Long, ByVal ErrorText As String)
End Sub
pretty much the same - except notification method has one more argument - Owner, which holds reference to wodFtpDLX instance that called this method. In VB, to implement IwodFtpNotify interface, you need code like this: - at the top of the code, in
Dim Ftp As wodFtpDLXCom
Implements IwodFtpNotify
- in Form_Load (or where you initialize new instance of wodFtpDLX) do this:
Set Ftp = New wodFtpDLXCom
Set Ftp.Notification = Me
Ftp.Protocol = FTP
Ftp.Timeout = 30
Ftp.Connect
...
You can notice that when we declared Ftp, we did not use WithEvents keyword - it is not needed anymore, because events will not be fired anymore. Notification methods we implement will be called instead!