PowerTCP SSH and SFTP for .NET
OnLog Method




A LogEventArgs object containing packet logging information.
Raises the Log event.
Syntax
'Declaration
 
Protected Overridable Sub OnLog( _
   ByVal e As LogEventArgs _
) 
'Usage
 
Dim instance As SshConnection
Dim e As LogEventArgs
 
instance.OnLog(e)
protected virtual void OnLog( 
   LogEventArgs e
)
protected: virtual void OnLog( 
   LogEventArgs* e
) 
protected:
virtual void OnLog( 
   LogEventArgs^ e
) 

Parameters

e
A LogEventArgs object containing packet logging information.
Remarks
Raising an event invokes the event handler through a delegate. The OnLog method will be called on the same thread the operation is using.

The OnLog method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

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

See the SynchronizingObject property for important information on updating UI controls from within derived classes and events.

See Also

Reference

SshConnection Class
SshConnection Members


PowerTCP SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic