System.Windows.Threading Namespace

包含支持 Windows Presentation Foundation (WPF) 线程系统的类型。 Contains types to support the Windows Presentation Foundation (WPF) threading system.

Dispatcher

提供用于管理线程工作项队列的服务。Provides services for managing the queue of work items for a thread.

DispatcherEventArgs

为与 Dispatcher 相关的事件提供事件数据。Provides event data for Dispatcher related events.

DispatcherExtensions

提供一组 static 方法,这些方法可扩展 Dispatcher 类。Provides a set of static methods that extend the Dispatcher class.

DispatcherFrame

表示 Dispatcher 中的执行循环。Represents an execution loop in the Dispatcher.

DispatcherHookEventArgs

DispatcherHooks 事件提供事件数据。Provides event data for DispatcherHooks events.

DispatcherHooks

提供有关 Dispatcher 处理的附加事件信息。Provides additional event information about Dispatcher processing.

DispatcherObject

表示与 Dispatcher 关联的对象。Represents an object that is associated with a Dispatcher.

DispatcherOperation

表示一个用于与已发布到 Dispatcher 队列的操作进行交互的对象。Represents an object that is used to interact with an operation that has been posted to the Dispatcher queue.

DispatcherOperation<TResult>

表示一个用于与已发布到 Dispatcher 队列的操作进行交互的对象,并包含 Task<TResult>Represents an object that is used to interact with an operation that has been posted to the Dispatcher queue and contains a Task<TResult>.

DispatcherSynchronizationContext

为 Windows Presentation Foundation (WPF) 提供同步上下文。Provides a synchronization context for Windows Presentation Foundation (WPF).

DispatcherTimer

集成到按指定时间间隔和指定优先级处理的 Dispatcher 队列中的计时器。A timer that is integrated into the Dispatcher queue which is processed at a specified interval of time and at a specified priority.

DispatcherUnhandledExceptionEventArgs

提供 DispatcherUnhandledException 事件的数据。Provides data for the DispatcherUnhandledException event.

DispatcherUnhandledExceptionFilterEventArgs

提供 DispatcherUnhandledExceptionFilter 事件的数据。Provides data for the DispatcherUnhandledExceptionFilter event.

TaskExtensions

提供一组 static 方法,这些方法可扩展 Task 类。Provides a set of static methods that extend the Task class.

结构

DispatcherPriorityAwaitable

表示异步产生控制权交还给当前计划程序并为该计划程序提供机会处理其他事件的可等待对象。Represents an awaitable object that asynchronously yields control back to the current dispatcher and provides an opportunity for the dispatcher to process other events

DispatcherPriorityAwaiter

表示对象,其等待异步任务的完成。Represents an object that waits for the completion of an asynchronous task.

DispatcherProcessingDisabled

表示处于禁用状态的调度程序,并提供重新启用调度程序处理的方法。Represents the Dispatcher when it is in a disable state and provides a means to re-enable dispatcher processing.

枚举

DispatcherOperationStatus

描述 DispatcherOperation 状态的可能值。Describes the possible values for the status of a DispatcherOperation.

DispatcherPriority

描述可通过 Dispatcher 调用操作的优先级。Describes the priorities at which operations can be invoked by way of the Dispatcher.

委托

DispatcherHookEventHandler

表示将处理与 DispatcherHooks 相关的事件的方法。Represents the method that will handle DispatcherHooks related events.

DispatcherOperationCallback

表示一个用于调度程序操作的委托。Represents a delegate to use for dispatcher operations.

DispatcherUnhandledExceptionEventHandler

表示用来处理 UnhandledException 事件的方法。Represents the method that will handle the UnhandledException event.

DispatcherUnhandledExceptionFilterEventHandler

表示用来处理 UnhandledExceptionFilter 事件的方法。Represents the method that will handle the UnhandledExceptionFilter event.