Share via


Resume Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Resumes a thread that has been suspended.

Namespace:  System.Threading
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub Resume
public void Resume()
public:
void Resume()
member Resume : unit -> unit 
public function Resume()

Remarks

Warning

Do not use the Suspend and Resume methods to synchronize the activities of threads. You have no way of knowing what code a thread is executing when you suspend it. If you suspend a thread while it holds locks during a security permission evaluation, other threads in the AppDomain might be blocked. If you suspend a thread while it is executing a class constructor, other threads in the AppDomain that attempt to use that class are blocked. Deadlocks can occur very easily.

.NET Framework Security

See Also

Reference

Thread Class

System.Threading Namespace