NotificationHubClient.GetNotificationHubJobAsync Methode

Definition

Überlädt

GetNotificationHubJobAsync(String)

Gibt bei angabe einer jobId die zugeordnete NotificationHubJobzurück. Diese Methode wird verwendet, um die status des Auftrags abzurufen, um festzustellen, ob dieser Auftrag abgeschlossen, fehlgeschlagen ist oder noch ausgeführt wird. Diese API ist nur für Standardnamespaces verfügbar.

GetNotificationHubJobAsync(String, CancellationToken)

Gibt bei angabe einer jobId die zugeordnete NotificationHubJobzurück. Diese Methode wird verwendet, um die status des Auftrags abzurufen, um festzustellen, ob dieser Auftrag abgeschlossen, fehlgeschlagen ist oder noch ausgeführt wird. Diese API ist nur für Standardnamespaces verfügbar.

GetNotificationHubJobAsync(String)

Gibt bei angabe einer jobId die zugeordnete NotificationHubJobzurück. Diese Methode wird verwendet, um die status des Auftrags abzurufen, um festzustellen, ob dieser Auftrag abgeschlossen, fehlgeschlagen ist oder noch ausgeführt wird. Diese API ist nur für Standardnamespaces verfügbar.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubJob> GetNotificationHubJobAsync (string jobId);
abstract member GetNotificationHubJobAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubJob>
override this.GetNotificationHubJobAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubJob>
Public Function GetNotificationHubJobAsync (jobId As String) As Task(Of NotificationHubJob)

Parameter

jobId
String

Die jobId wird zurückgegeben, nachdem ein neuer Auftrag mithilfe SubmitNotificationHubJobAsync(NotificationHubJob)von erstellt wurde.

Gibt zurück

Der aktuelle Zustand von SubmitNotificationHubJobAsync(NotificationHubJob).

Implementiert

Gilt für:

GetNotificationHubJobAsync(String, CancellationToken)

Gibt bei angabe einer jobId die zugeordnete NotificationHubJobzurück. Diese Methode wird verwendet, um die status des Auftrags abzurufen, um festzustellen, ob dieser Auftrag abgeschlossen, fehlgeschlagen ist oder noch ausgeführt wird. Diese API ist nur für Standardnamespaces verfügbar.

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubJob> GetNotificationHubJobAsync (string jobId, System.Threading.CancellationToken cancellationToken);
abstract member GetNotificationHubJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubJob>
override this.GetNotificationHubJobAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationHubJob>
Public Function GetNotificationHubJobAsync (jobId As String, cancellationToken As CancellationToken) As Task(Of NotificationHubJob)

Parameter

jobId
String

Die jobId wird zurückgegeben, nachdem ein neuer Auftrag mithilfe SubmitNotificationHubJobAsync(NotificationHubJob)von erstellt wurde.

cancellationToken
CancellationToken

Ein CancellationToken, das beim Warten auf den Abschluss einer Aufgabe überwacht werden soll.

Gibt zurück

Der aktuelle Zustand von SubmitNotificationHubJobAsync(NotificationHubJob).

Implementiert

Gilt für: