Share via


INotificationHubClient.SendDirectNotificationAsync メソッド

定義

オーバーロード

SendDirectNotificationAsync(Notification, IList<String>)

deviceHandles に一覧表示されているすべてのデバイス (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

SendDirectNotificationAsync(Notification, String)

deviceHandle (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

SendDirectNotificationAsync(Notification, IList<String>, CancellationToken)

deviceHandles に一覧表示されているすべてのデバイス (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

SendDirectNotificationAsync(Notification, String, CancellationToken)

deviceHandle (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

SendDirectNotificationAsync(Notification, IList<String>)

deviceHandles に一覧表示されているすべてのデバイス (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendDirectNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, System.Collections.Generic.IList<string> deviceHandles);
abstract member SendDirectNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * System.Collections.Generic.IList<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendDirectNotificationAsync (notification As Notification, deviceHandles As IList(Of String)) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信先のプッシュ通知サービスを識別する Notification のインスタンス。

deviceHandles
IList<String>

有効なデバイス識別子の一覧。

戻り値

例外

notification または deviceHandles オブジェクトが null の場合にスローされます

適用対象

SendDirectNotificationAsync(Notification, String)

deviceHandle (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendDirectNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, string deviceHandle);
abstract member SendDirectNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendDirectNotificationAsync (notification As Notification, deviceHandle As String) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信先のプッシュ通知サービスを識別する Notification のインスタンス。

deviceHandle
String

有効なデバイス識別子。

戻り値

例外

notification または deviceHandle オブジェクトが null の場合にスローされます

適用対象

SendDirectNotificationAsync(Notification, IList<String>, CancellationToken)

deviceHandles に一覧表示されているすべてのデバイス (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendDirectNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, System.Collections.Generic.IList<string> deviceHandles, System.Threading.CancellationToken cancellationToken);
abstract member SendDirectNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendDirectNotificationAsync (notification As Notification, deviceHandles As IList(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信先のプッシュ通知サービスを識別する Notification のインスタンス。

deviceHandles
IList<String>

有効なデバイス識別子の一覧。

cancellationToken
CancellationToken

タスクの完了を待機しているときに監視する CancellationToken

戻り値

例外

notification または deviceHandles オブジェクトが null の場合にスローされます

適用対象

SendDirectNotificationAsync(Notification, String, CancellationToken)

deviceHandle (通知の種類で表される有効なトークン) に通知を直接送信します。 この API のユーザーは、登録またはインストールを使用しません。 代わりに、この API のユーザーは、すべてのデバイスを自分で管理し、Azure Notification Hub をパススルー サービスとしてのみ使用して、さまざまなプッシュ通知サービスと通信します。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendDirectNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, string deviceHandle, System.Threading.CancellationToken cancellationToken);
abstract member SendDirectNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendDirectNotificationAsync (notification As Notification, deviceHandle As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信先のプッシュ通知サービスを識別する Notification のインスタンス。

deviceHandle
String

有効なデバイス識別子。

cancellationToken
CancellationToken

タスクの完了を待機しているときに監視する CancellationToken

戻り値

例外

notification または deviceHandle オブジェクトが null の場合にスローされます

適用対象