PowerTCP Sockets for .NET
OnEcho Method (Ping)




An EchoEventArgs object that contains the event data.
Raises the Echo event.
Syntax
'Declaration
 
Protected Overridable Sub OnEcho( _
   ByVal e As EchoEventArgs _
) 
'Usage
 
Dim instance As Ping
Dim e As EchoEventArgs
 
instance.OnEcho(e)
protected virtual void OnEcho( 
   EchoEventArgs e
)
protected: virtual void OnEcho( 
   EchoEventArgs* e
) 
protected:
virtual void OnEcho( 
   EchoEventArgs^ e
) 

Parameters

e
An EchoEventArgs object that contains the event data.
Remarks
If the Synchronizing property is set, this method asynchronously invokes the Echo event on the UI thread. If the Synchronizing property is null, this method invokes the event on the executing thread.

This 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 OnEcho in a derived class, be sure to call the base class OnEcho 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

Ping Class
Ping Members


PowerTCP Sockets for .NET Documentation Version 4.5
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic