Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ComponentBase Dim exception As Exception instance.Marshal(exception) |
Managed Extensions for C++ | |
---|---|
public: void Marshal( Exception* exception ) |
C++/CLI | |
---|---|
public: void Marshal( Exception^ exception ) |
Parameters
- exception
- The Exception to be marshaled.
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.
Target Platforms: Microsoft .NET Framework 2.0