Back to product page

StateChangedEvent event


Fires when wodFtpDLX.NET changes its state.

Syntax

  • C#
  • VB.NET
delegate void StateChangedDelegate(object Sender, FtpStateChangedArgs Args);
The StateChangedEvent(Args.NewState,Args.OldState) syntax has these parts:
Args.NewStateStates enumeration. Holds new state.
Args.OldStateStates enumeration. Holds previous state.

Delegate Sub StateChangedDelegate(ByVal Sender As Object, ByVal Args As FtpStateChangedArgs)
The StateChangedEvent(Args.NewState,Args.OldState) syntax has these parts:
Args.NewStateStates enumeration. Holds new state.
Args.OldStateStates enumeration. Holds previous state.

Remarks

StateChanged event is fired each time wodFtpDLX.NET internal state changes. Initially, it is set to Disconnected. Once you initiate new connection, it will change to Connecting, etc...

Using this event you can see if there is something happening with wodFtpDLX.NET, or it is idle and waiting for your commands. You can not use wodFtpDLX.NET while it's busy executing your command, you must wait for Done event to fire.

You can determine current state using State property.

Platforms

Windows