PowerTCP Mail for .NET
Marshal(Exception) Method




The Exception to be marshaled.
Marshals an exception to the UI thread and raises the Error event.
Syntax
Public Overloads Sub Marshal( _
   ByVal exception As Exception _
) 
Dim instance As ComponentBase
Dim exception As Exception
 
instance.Marshal(exception)
public void Marshal( 
   Exception exception
)
public: void Marshal( 
   Exception* exception
) 
public:
void Marshal( 
   Exception^ exception
) 

Parameters

exception
The Exception to be marshaled.
Remarks

Used to marshal exceptions from a worker thread to the UI thread for typical display purposes. It calls OnError, which raises the Error event.

When Start is used, unhandled exceptions generated on worker threads are marshaled to the UI thread by this method.

See the SynchronizingObject property for information on updating UI controls in your event handler. Internally, SynchronizingObject.BeginInvoke is used to marshal data when the SynchronizingObject is not null, and Delegate.DynamicInvoke is used when SynchronizingObject is null. This method is provided for convenience; the developer may use alternative methods for marshaling data as required.

See Also

Reference

ComponentBase Class
ComponentBase Members
Overload List


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