Thread.Resume Metoda

Definice

Upozornění

Thread.Resume has been deprecated. Use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.

Upozornění

Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. https://go.microsoft.com/fwlink/?linkid=14202

Upozornění

Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. http://go.microsoft.com/fwlink/?linkid=14202

Obnoví vlákno, které bylo pozastaveno.

public:
 void Resume();
[System.Obsolete("Thread.Resume has been deprecated. Use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.")]
public void Resume();
[System.Obsolete("Thread.Resume has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  https://go.microsoft.com/fwlink/?linkid=14202", false)]
public void Resume();
[System.Obsolete("Thread.Resume has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  http://go.microsoft.com/fwlink/?linkid=14202", false)]
public void Resume();
public void Resume();
[<System.Obsolete("Thread.Resume has been deprecated. Use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.")>]
member this.Resume : unit -> unit
[<System.Obsolete("Thread.Resume has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  https://go.microsoft.com/fwlink/?linkid=14202", false)>]
member this.Resume : unit -> unit
[<System.Obsolete("Thread.Resume has been deprecated.  Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources.  http://go.microsoft.com/fwlink/?linkid=14202", false)>]
member this.Resume : unit -> unit
member this.Resume : unit -> unit
Public Sub Resume ()
Atributy

Výjimky

Pouze .NET Core a .NET 5+ : Ve všech případech.

Vlákno nebylo spuštěno, je mrtvé nebo není v pozastaveném stavu.

Volající nemá odpovídající SecurityPermission.

Poznámky

Caution

Nepoužívejte a SuspendResume metody k synchronizaci aktivit vláken. Nemáte možnost zjistit, jaký kód se vlákno spouští, když ho pozastavíte. Pokud během vyhodnocování oprávnění zabezpečení pozastavíte vlákno, které uchovává zámky AppDomain , můžou být zablokovaná další vlákna. Pokud pozastavíte vlákno, když spouští konstruktor třídy, ostatní vlákna v pokusu AppDomain o použití této třídy jsou blokována. Zablokování může dojít velmi snadno.

Platí pro

Viz také