PowerTCP Mail for .NET
OnData Method




A DataEventArgs object that contains the event data.
Raises the Data event.
Syntax
Protected Overridable Sub OnData( _
   ByVal e As DataEventArgs _
) 
Dim instance As TcpBase
Dim e As DataEventArgs
 
instance.OnData(e)
protected virtual void OnData( 
   DataEventArgs e
)
protected: virtual void OnData( 
   DataEventArgs* e
) 
protected:
virtual void OnData( 
   DataEventArgs^ e
) 

Parameters

e
A DataEventArgs object that contains the event data.
Remarks
If the Synchronizing property is set, this method synchronously invokes the Data event on the UI thread. If the Synchronizing property is null, this method invokes the event on the executing thread.

The OnData 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 OnData in a derived class, be sure to call the base class OnData 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 Mail for .NET Documentation Version 4.3
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic