PowerTCP FTP for .NET
OnStateChanged Method



An EventArgs.
Raises the StateChanged event.
Syntax
Protected Overridable Sub OnStateChanged( _
   ByVal e As EventArgs _
) 
Dim instance As TcpBase
Dim e As EventArgs
 
instance.OnStateChanged(e)
protected virtual void OnStateChanged( 
   EventArgs e
)
protected:
virtual void OnStateChanged( 
   EventArgs^ e
) 

Parameters

e
An EventArgs.
Remarks
If the Synchronizing property is set, this method synchronously invokes the event on the UI thread. If the Synchronizing property is null, this method invokes the event on the executing thread.

The OnStateChanged method allows derived classes to handle the event without attaching a delegate, but marshaling is not provided. This is the preferred technique for handling the event in a derived class.

Note to Inheritors: When overriding OnStateChanged in a derived class, be sure to call the base class OnStateChanged method, so that registered delegates receive the event.

See the SynchronizingObject property for information on updating UI controls in your event handler.

See Also

Reference

TcpBase Class
TcpBase Members


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic