PowerTCP SSH and SFTP for .NET
Marshal(Exception) Method




The Exception to be marshaled.
Marshals an exception to the UI thread and raises the Error event.
Syntax
'Declaration
 
Public Overloads Sub Marshal( _
   ByVal exception As Exception _
) 
'Usage
 
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 SSH and SFTP for .NET Documentation Version 7.0
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic