NotificationHubClient.SendNotificationAsync メソッド

定義

オーバーロード

SendNotificationAsync(Notification, String, CancellationToken)

タグ式に通知を送信します (1 つのタグ "tag" は有効なタグ式です)。

SendNotificationAsync(Notification, IEnumerable<String>, CancellationToken)

タグの空でないセット (最大 20) に非同期的に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

SendNotificationAsync(Notification, CancellationToken)

空でないタグのセット (最大 20) に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

SendNotificationAsync(Notification)

空でないタグのセット (最大 20) に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

SendNotificationAsync(Notification, IEnumerable<String>)

タグの空でないセット (最大 20) に非同期的に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

SendNotificationAsync(Notification, String)

タグ式に通知を送信します (1 つのタグ "tag" は有効なタグ式です)。

SendNotificationAsync(Notification, String, CancellationToken)

タグ式に通知を送信します (1 つのタグ "tag" は有効なタグ式です)。

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

パラメーター

notification
Notification

送信する通知。

tagExpression
String

タグ式は、論理演算子 AND ()、OR (&&||)、NOT (!)、丸かっこを使用して構築されたブール式です。 例: (A ||B) && !C. 式で使用される OR の場合、最大 20 個のタグを含めることができます。 その他の式は 6 つのタグに制限されています。 1 つのタグ "A" は有効な式であることに注意してください。

cancellationToken
CancellationToken

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

戻り値

NotificationOutcome 送信操作の結果を記述します。

実装

例外

通知 (notification)

通知。Tag プロパティは null にする必要があります

適用対象

SendNotificationAsync(Notification, IEnumerable<String>, CancellationToken)

タグの空でないセット (最大 20) に非同期的に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, System.Collections.Generic.IEnumerable<string> tags, System.Threading.CancellationToken cancellationToken);
abstract member SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendNotificationAsync (notification As Notification, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信する通知。

tags
IEnumerable<String>

空でないタグのセット (最大 20 個のタグ)。 セット内の各文字列には、1 つのタグを含めることができます。

cancellationToken
CancellationToken

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

戻り値

NotificationOutcome 送信操作の結果を記述します。

実装

例外

通知またはタグ オブジェクトが null の場合にスローされます

通知。Tag プロパティを null にしないか、引数 tags に少なくとも 1 つのタグを含める必要がある

適用対象

SendNotificationAsync(Notification, CancellationToken)

空でないタグのセット (最大 20) に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

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

パラメーター

notification
Notification

送信する通知。

cancellationToken
CancellationToken

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

戻り値

NotificationOutcome 送信操作の結果を記述します。

実装

例外

通知 (notification)

適用対象

SendNotificationAsync(Notification)

空でないタグのセット (最大 20) に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification);
abstract member SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendNotificationAsync (notification As Notification) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信する通知。

戻り値

NotificationOutcome 送信操作の結果を記述します。

実装

例外

通知 (notification)

適用対象

SendNotificationAsync(Notification, IEnumerable<String>)

タグの空でないセット (最大 20) に非同期的に通知を送信します。 これは、ブール型の OR ("||") を持つタグ式と同じです。

public System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendNotificationAsync (Microsoft.Azure.NotificationHubs.Notification notification, System.Collections.Generic.IEnumerable<string> tags);
abstract member SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendNotificationAsync : Microsoft.Azure.NotificationHubs.Notification * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendNotificationAsync (notification As Notification, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)

パラメーター

notification
Notification

送信する通知。

tags
IEnumerable<String>

空でないタグのセット (最大 20 個のタグ)。 セット内の各文字列には、1 つのタグを含めることができます。

戻り値

NotificationOutcome 送信操作の結果を記述します。

実装

例外

通知またはタグ オブジェクトが null の場合にスローされます

通知。Tag プロパティを null にしないか、引数 tags に少なくとも 1 つのタグを含める必要がある

適用対象

SendNotificationAsync(Notification, String)

タグ式に通知を送信します (1 つのタグ "tag" は有効なタグ式です)。

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

パラメーター

notification
Notification

送信する通知。

tagExpression
String

タグ式は、論理演算子 AND ()、OR (&&||)、NOT (!)、丸かっこを使用して構築されたブール式です。 例: (A ||B) && !C. 式で使用される OR の場合、最大 20 個のタグを含めることができます。 その他の式は 6 つのタグに制限されています。 1 つのタグ "A" は有効な式であることに注意してください。

戻り値

NotificationOutcome 送信操作の結果を記述します。

実装

例外

通知 (notification)

通知。Tag プロパティは null にする必要があります

適用対象