Either suspends the thread, or if the thread is already suspended, has no effect.
[Visual Basic] Public Sub Suspend() [C#] public void Suspend(); [C++] public: void Suspend(); [JScript] public function Suspend();
Exception Type | Condition |
---|---|
ThreadStateException | The thread has not been started or is dead. |
SecurityException | The caller does not have the appropriate SecurityPermission. |
If the thread is already suspended, this method has no effect.