Thread.Resume Yöntem

Tanım

Dikkat

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

Dikkat

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

Dikkat

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

Askıya alınmış bir iş parçacığını sürdürür.

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 ()
Öznitelikler

Özel durumlar

Yalnızca .NET Core ve .NET 5+ : Her durumda.

İş parçacığı başlatılmadı, çalışmıyor veya askıya alınmış durumda değil.

Çağıranın uygun SecurityPermissionöğesine sahip değil.

Açıklamalar

Caution

İş parçacıklarının Suspend etkinliklerini eşitlemek için ve Resume yöntemlerini kullanmayın. Bir iş parçacığını askıya aldığınızda hangi kodun yürütülmekte olduğunu bilmenin hiçbir yolu yoktur. Bir güvenlik izni değerlendirmesi sırasında kilitleri tutarken bir iş parçacığını askıya alırsanız içindeki diğer iş parçacıkları AppDomain engellenebilir. Bir sınıf oluşturucuyu yürütürken bir iş parçacığını askıya alırsanız, bu sınıfı kullanmaya çalışan diğer iş parçacıkları AppDomain engellenir. Kilitlenmeler çok kolay gerçekleşebilir.

Şunlara uygulanır

Ayrıca bkz.