SingleThreadedSynchronizationContext Klasse

Definition

Ein Single Thread-Synchronisierungs Kontext, ähnlich wie DispatcherSynchronizationContext und WindowsFormsSynchronizationContext.

public ref class SingleThreadedSynchronizationContext : System::Threading::SynchronizationContext
public class SingleThreadedSynchronizationContext : System.Threading.SynchronizationContext
type SingleThreadedSynchronizationContext = class
    inherit SynchronizationContext
Public Class SingleThreadedSynchronizationContext
Inherits SynchronizationContext
Vererbung
SingleThreadedSynchronizationContext

Hinweise

Dies muss auf dem Thread erstellt werden, der als pumpthread fungieren soll.

Konstruktoren

SingleThreadedSynchronizationContext()

Initialisiert eine neue Instanz der- SingleThreadedSynchronizationContext Klasse, wobei die neue-Instanz dem aktuellen Thread zugeordnet wird.

Methoden

CreateCopy()

When overridden in a derived class, creates a copy of the synchronization context.

Post(SendOrPostCallback, Object)
PushFrame(SingleThreadedSynchronizationContext+Frame)

Überträgt ein nachrichtenpump auf den aktuellen Thread, der die mit geplante Arbeit ausführt Post(SendOrPostCallback, Object) .

Send(SendOrPostCallback, Object)

Gilt für