Thread.Resume Methode

Definitie

Let op

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

Let op

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

Let op

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

Hiermee wordt een thread hervat die is onderbroken.

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 ()
Kenmerken

Uitzonderingen

.NET Core en .NET 5+ alleen: in alle gevallen.

De thread is niet gestart, is dood of heeft niet de status Onderbroken.

De beller heeft niet de juiste SecurityPermission.

Opmerkingen

Caution

Gebruik de Suspend en Resume methoden niet om de activiteiten van threads te synchroniseren. U hebt geen manier om te weten welke code een thread uitvoert wanneer u deze onderbreekt. Als u een thread onderbreekt terwijl deze vergrendelingen bevat tijdens een evaluatie van beveiligingsmachtigingen, worden andere threads in de AppDomain thread mogelijk geblokkeerd. Als u een thread onderbreekt terwijl er een klasseconstructor wordt uitgevoerd, worden andere threads in de AppDomain poging om die klasse te gebruiken geblokkeerd. Impasses kunnen heel gemakkelijk optreden.

Van toepassing op

Zie ook