Method Abort
Abort()
Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Calling this method usually terminates the thread
Declaration
public void Abort()
Abort(Object)
Raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread while also providing exception information about the thread termination. Calling this method usually terminates the thread.
Declaration
public void Abort(object stateInfo)
Parameters
Type | Name | Description |
---|---|---|
System.Object | stateInfo | An object that contains application-specific information, such as state, which can be used by the thread being aborted |