Thread t = new Thread(MyMethod); t.Start(); t.Abort();
try { Thread t = new Thread(MyMethod); t.Start(); t.Join(); } catch (ThreadAbortException ex) { // Handle exception }In this example, a thread is created and started. The `Join()` method is called to wait for the thread to complete. However, the `Abort()` method is called on the thread, resulting in a `ThreadAbortException` being thrown. The exception is caught and handled appropriately. Package/Library: System.Threading.