Compartir a través de


IotHubDescriptionResource.TestRoute Método

Definición

Prueba de la nueva ruta para este centro de IoT

  • Ruta de acceso de solicitud/suscripciones/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew
  • IdIotHubResource_TestRoute de operaciones
public virtual Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubTestRouteResult> TestRoute (Azure.ResourceManager.IotHub.Models.IotHubTestRouteContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member TestRoute : Azure.ResourceManager.IotHub.Models.IotHubTestRouteContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubTestRouteResult>
override this.TestRoute : Azure.ResourceManager.IotHub.Models.IotHubTestRouteContent * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubTestRouteResult>
Public Overridable Function TestRoute (content As IotHubTestRouteContent, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IotHubTestRouteResult)

Parámetros

content
IotHubTestRouteContent

Ruta que debe probarse.

cancellationToken
CancellationToken

Token de cancelación que se va a usar.

Devoluciones

Excepciones

content es null.

Se aplica a