你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IotHubResourceOperationsExtensions.TestAllRoutesAsync 方法

定义

测试所有路由

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.IotHub.Models.TestAllRoutesResult> TestAllRoutesAsync (this Microsoft.Azure.Management.IotHub.IIotHubResourceOperations operations, Microsoft.Azure.Management.IotHub.Models.TestAllRoutesInput input, string iotHubName, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default);
static member TestAllRoutesAsync : Microsoft.Azure.Management.IotHub.IIotHubResourceOperations * Microsoft.Azure.Management.IotHub.Models.TestAllRoutesInput * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.IotHub.Models.TestAllRoutesResult>
<Extension()>
Public Function TestAllRoutesAsync (operations As IIotHubResourceOperations, input As TestAllRoutesInput, iotHubName As String, resourceGroupName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TestAllRoutesResult)

参数

operations
IIotHubResourceOperations

此扩展方法的操作组。

input
TestAllRoutesInput

用于测试所有路由的输入

iotHubName
String

要测试的 IotHub

resourceGroupName
String

IoT 中心所属的资源组

cancellationToken
CancellationToken

取消标记。

返回

注解

测试在此 IoT 中心配置的所有路由

适用于