Mono Class Library: System.Threading.Thread Overview | Members

System.Threading.Thread.Abort Method

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. [Edit]

public void Abort (object stateInfo)

Parameters

stateInfo
A object that contains application-specific information, such as state, which can be used by the thread being aborted. [Edit]

Permissions

TypeReason
!:System.Security.SecurityPermission [Edit] Requires permission to control the thread to be aborted. See System.Security.Permissions.SecurityPermissionFlag.ControlThread.

Exceptions

TypeReason
System.Security.SecurityExceptionCaller does not have System.Security.Permissions.SecurityPermissionFlag.ControlThread security permission for this thread. [Edit]

Remarks

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) ().

[Edit]

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0