Freigeben über


IotHubDescriptionResource.TestRoute Methode

Definition

Testen der neuen Route für diesen Iot Hub

  • Anforderungspfad/abonnements/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{iotHubName}/routing/routes/$testnew
  • Vorgangs-IdIotHubResource_TestRoute
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)

Parameter

content
IotHubTestRouteContent

Route, die getestet werden muss.

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Ausnahmen

content ist NULL.

Gilt für: