Raises a System.Threading.ThreadAbortException in the thread on which it is invoked to begin the process of terminating the thread. In all but the most extraordinary situations, calling this method will terminate the thread.
- stateInfo
- A object that contains application-specific information, such as state, which can be used by the thread being aborted.
Type Reason !:System.Security.SecurityPermission Requires permission to control the thread to be aborted. See System.Security.Permissions.SecurityPermissionFlag.ControlThread.
Type Reason System.Security.SecurityException Caller does not have System.Security.Permissions.SecurityPermissionFlag.ControlThread security permission for this thread.
The object passed as the stateInfo parameter can be obtained by accessing the ThreadAbortException.ExceptionState property.
Note: For details on aborting threads, see Thread.Abort(object) ().
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0