RemoteControlClient(String, String, String, Int32, Int32, Int32) 构造函数

定义

创建客户端并开始轮询。

public RemoteControlClient (string hostId, string baseUrl, string relativePath, int pollingIntervalMins = 1380, int theHttpRequestTimeoutSeconds = 60, int overrideReadFileTelemetryFrequency = 1);
new Microsoft.VisualStudio.RemoteControl.RemoteControlClient : string * string * string * int * int * int -> Microsoft.VisualStudio.RemoteControl.RemoteControlClient
Public Sub New (hostId As String, baseUrl As String, relativePath As String, Optional pollingIntervalMins As Integer = 1380, Optional theHttpRequestTimeoutSeconds As Integer = 60, Optional overrideReadFileTelemetryFrequency As Integer = 1)

参数

hostId
String

设置文件的 HostId (用于构造文件的 URL: [baseUrl]/[hostId]/[relativePath] ) 。

baseUrl
String

服务的基 URL,例如 https://az700632.vo.msecnd.net

relativePath
String

用于 contruct 文件的完整 URL 的相对路径: [baseUrl]/[hostId]/[relativePath]

pollingIntervalMins
Int32

可选。 默认值为1440分钟 (24 小时) 。 允许的最小值 = 5 分钟。 轮询间隔 (分钟) 在服务器上的最后一个请求成功时检查服务器上的文件。

theHttpRequestTimeoutSeconds
Int32

可选。 默认值为60秒。 允许的最大值 = 60 秒。 使用的 HTTP 请求超时。

overrideReadFileTelemetryFrequency
Int32

可选。 允许设置发送成功的 ReadFile 遥测的频率,以防止每次) 时干扰事件默认为 1 (表示 post ReadFile 遥测。 允许的最小值为1。

适用于