|   | 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.ThreadingAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.257-beta+00aa2366fbb9ec75f636ebc7cfa610e3826a727c
 Syntax
Syntaxpublic static void Cancel(
	ManagedThread item,
	bool allowAbort,
	Object stateInfo
)
Public Shared Sub Cancel ( 
	item As ManagedThread,
	allowAbort As Boolean,
	stateInfo As Object
)
public:
static void Cancel(
	ManagedThread^ item, 
	bool allowAbort, 
	Object^ stateInfo
)
static member Cancel : 
        item : ManagedThread * 
        allowAbort : bool * 
        stateInfo : Object -> unit GSF.Threading.ManagedThreads.Cancel = function(item, allowAbort, stateInfo);
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
See Also