Partager via


IotHubDescriptionResource.GetJob(String, CancellationToken) Méthode

Définition

Obtenez les détails d’un travail à partir d’un hub IoT. Pour plus d’informations, consultez https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.

  • Chemin de la demande/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/jobs/{jobId}
  • IdIotHubResource_GetJob d’opération
public virtual Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubJobInfo> GetJob (string jobId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetJob : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubJobInfo>
override this.GetJob : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.IotHub.Models.IotHubJobInfo>
Public Overridable Function GetJob (jobId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IotHubJobInfo)

Paramètres

jobId
String

Identificateur du travail.

cancellationToken
CancellationToken

Jeton d’annulation à utiliser.

Retours

Exceptions

jobId est une chaîne vide et devait être non vide.

jobId a la valeur null.

S’applique à