Dart.Emulation Namespace > ComponentBase Class > Marshal Method : Marshal(Exception) Method |
Dim instance As ComponentBase Dim exception As Exception instance.Marshal(exception)
public: void Marshal( Exception* exception )
public: void Marshal( Exception^ exception )
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.