PowerTCP Emulation for .NET CF
OnData Method
See Also  Send comments on this topic.
Dart.Common Namespace > PtyBase Class : OnData Method




e
A DataEventArgs object that contains the event data.
Raises the Data event.

Syntax

Visual Basic (Declaration) 
Protected Overrides Sub OnData( _
   ByVal e As DataEventArgs _
) 
Visual Basic (Usage)Copy Code
Dim instance As PtyBase
Dim e As DataEventArgs
 
instance.OnData(e)
C# 
protected override void OnData( 
   DataEventArgs e
)
Managed Extensions for C++ 
protected: void OnData( 
   DataEventArgs* e
) override 
C++/CLI 
protected:
void OnData( 
   DataEventArgs^ e
) override 

Parameters

e
A DataEventArgs object that contains the event data.

Remarks

Raising an event invokes the event handler through a delegate. The Synchronizing property must be set.

The OnData method allows the PtyBase class to capture marshalled data without attaching a delegate.

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 important information on updating UI controls from within derived classes and events.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 4.2
© 2010 Dart Communications. All Rights Reserved.