TestScript.Delay 方法

定义

重载

Delay(TimeSpan, String, Int32)

在会话中添加延迟。

Delay(UInt32, String, Int32)

在会话中添加延迟。

Delay(TimeSpan, String, Int32)

在会话中添加延迟。

public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript Delay(TimeSpan timespan, string path = "", int line = 0);
member this.Delay : TimeSpan * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function Delay (timespan As TimeSpan, Optional path As String = "", Optional line As Integer = 0) As TestScript

参数

timespan
TimeSpan

TimeSpan 中的延迟长度。

path
String

路径。

line
Int32

行号。

返回

一个新的 TestScript 对象,该对象将延迟追加到建模的交换。

注解

此方法不会修改原始 TestScript 对象。

适用于

Delay(UInt32, String, Int32)

在会话中添加延迟。

public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript Delay(uint ms, string path = "", int line = 0);
member this.Delay : uint32 * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function Delay (ms As UInteger, Optional path As String = "", Optional line As Integer = 0) As TestScript

参数

ms
UInt32

延迟长度(以毫秒为单位)。

path
String

路径。

line
Int32

行号。

返回

一个新的 TestScript 对象,该对象将延迟追加到建模的交换。

注解

此方法不会修改原始 TestScript 对象。

适用于