Back to product page

StateChangedEvent event


Fires when wodSFTP.NET changes its state.

Syntax

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

Delegate Sub StateChangedDelegate(ByVal Sender As Object, ByVal Args As WeOnlyDo.Client.SFTP.StateChangedArgs)
The StateChangedEvent(Args.NewState,Args.OldState) syntax has these parts:
Args.NewStateStates. Holds current state.
Args.OldStateStates. Holds previous state.

Remarks

StateChange event is fired each time wodSFTP.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 wodSFTP.NET, or it is idle and waiting for your commands.

You can determine current state using State property.

Platforms

Windows