Click or drag to resize

ManagedThreadsCancel Method

Removes a queued thread from thread pool if still queued, if allowAbort is True aborts the thread if executing (standard or queued)

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
Syntax
public static void Cancel(
	ManagedThread item,
	bool allowAbort,
	Object stateInfo
)
View Source

Parameters

item  ManagedThread
Thread to cancel
allowAbort  Boolean
Set to True to abort thread if executing
stateInfo  Object
An object that contains application-specific information, such as state, which can be used by the thread being aborted.
See Also