PowerTCP Telnet for .NET CF
Marshal(Exception) Method
See Also  Send comments on this topic.
Dart.Common Namespace > ComponentBase Class > Marshal Method : Marshal(Exception) Method




exception
The Exception to be marshaled.
Marshals an exception to the UI thread.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Marshal( _
   ByVal exception As Exception _
) 
Visual Basic (Usage)Copy Code
Dim instance As ComponentBase
Dim exception As Exception
 
instance.Marshal(exception)
C# 
public void Marshal( 
   Exception exception
)
Managed Extensions for C++ 
public: void Marshal( 
   Exception* exception
) 
C++/CLI 
public:
void Marshal( 
   Exception^ exception
) 

Parameters

exception
The Exception to be marshaled.

Remarks

This method is used to marshal exceptions from a worker thread back to the UI thread for typical display purposes. It calls the OnError method, which raises the Error event.

This method automatically marshals any unhandled exceptions generated by worker threads created with the Start method.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

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