Extensions.Schedule 方法

Namespace:ReactiveTests
装配: Tests.System.Reactive.dll) 中的 Tests.System.Reactive (

语法

'Declaration
<ExtensionAttribute> _
Public Shared Function Schedule ( _
    scheduler As TestScheduler, _
    action As Action, _
    time As Long _
) As IDisposable
'Usage
Dim scheduler As TestScheduler
Dim action As Action
Dim time As Long
Dim returnValue As IDisposable

returnValue = scheduler.Schedule(action, _
    time)
public static IDisposable Schedule(
    this TestScheduler scheduler,
    Action action,
    long time
)
[ExtensionAttribute]
public:
static IDisposable^ Schedule(
    TestScheduler^ scheduler, 
    Action^ action, 
    long long time
)
static member Schedule : 
        scheduler:TestScheduler * 
        action:Action * 
        time:int64 -> IDisposable 
public static function Schedule(
    scheduler : TestScheduler, 
    action : Action, 
    time : long
) : IDisposable

参数

返回值

类型: System.IDisposable

使用说明

在 Visual Basic 和 C# 中,可以在 TestScheduler 类型的任何对象上调用此方法作为实例方法。 当使用实例方法语法调用此方法时,请省略第一个参数。 有关详细信息,请参阅

另请参阅

参考

扩展类

ReactiveTests 命名空间