ControlScheduler 类

表示一个 对象,该对象在与 Windows 窗体 控件关联的消息循环上计划工作单元。

继承层次结构

System.Object
  System.Reactive.Concurrency.ControlScheduler

Namespace:System.Reactive.Concurrency
装配: System.Reactive.Windows.Forms.dll) 中的 System.Reactive.Windows.Forms (

语法

'Declaration
Public Class ControlScheduler _
    Implements IScheduler
'Usage
Dim instance As ControlScheduler
public class ControlScheduler : IScheduler
public ref class ControlScheduler : IScheduler
type ControlScheduler =  
    class
        interface IScheduler
    end
public class ControlScheduler implements IScheduler

ControlScheduler 类型公开以下成员。

构造函数

  名称 说明
Public method Public method ControlScheduler 构造一个 ControlScheduler,用于在与指定的Windows 窗体控件关联的消息循环上计划工作单元。

顶部

属性

  名称 说明
公共属性 控制 获取与 ControlScheduler 关联的控件。
公共属性 Now 获取计划程序当前时间的概念。

顶部

方法

  名称 说明
Public method Public method 等于 (继承自 Object.)
受保护的方法 完成 (继承自 Object.)
Public method Public method GetHashCode (继承自 Object.)
Public method Public method GetType (继承自 Object.)
受保护的方法 MemberwiseClone (继承自 Object.)
Public method Public method 计划<TState> (TState、Func<IScheduler、TState、IDisposable>) 计划对与 控件关联的消息循环执行的操作。
Public method Public method 计划<TState> (TState、DateTimeOffset、Func<IScheduler、TState、IDisposable>)
Public method Public method 计划<TState> (TState、TimeSpan、Func<IScheduler、TState、IDisposable>)
Public method Public method ToString (继承自 Object.)

顶部

扩展方法

  名称 说明
公共扩展方法 计划 (操作) 已重载。 计划要执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划 (操作<>) 已重载。 计划以递归方式执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划 (TimeSpan、操作) 已重载。 安排在 dueTime 之后执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划 (DateTimeOffset、操作) 已重载。 计划将在 dueTime 执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划 (时间跨度、操作<操作<时间跨>> 度) 已重载。 计划在每个 dueTime 之后以递归方式执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划 (DateTimeOffset、操作<操作<DateTimeOffset>>) 已重载。 安排在 dueTime 之后执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划<TState> (TState、Action<TState、Action<TState>>) 已重载。 计划以递归方式执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划<TState> (TState、TimeSpan、Action<TState、Action<TState、TimeSpan>>) 已重载。 计划在每个 dueTime 之后以递归方式执行的操作。 由 Scheduler.) 定义的 (
公共扩展方法 计划<TState> (TState、DateTimeOffset、Action<TState、Action<TState、DateTimeOffset>>) 已重载。 计划在每个 dueTime 以递归方式执行的操作。 由 Scheduler.) 定义的 (

顶部

线程安全性

此类型的所有公共静态(Visual Basic 中共享的)成员都是线程安全的。 但不保证所有实例成员都是线程安全的。

另请参阅

参考

System.Reactive.Concurrency 命名空间