PushClient.SendAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
SendAsync(IPushMessage) |
通知ハブに通知を送信します。 |
SendAsync(IPushMessage, IEnumerable<String>) |
古い.
指定されたタグ式を使用して通知ハブに通知を送信します。 |
SendAsync(IPushMessage, String) |
指定されたタグ式を使用して通知ハブに通知を送信します。 |
SendAsync(IPushMessage)
通知ハブに通知を送信します。
public virtual System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAsync (Microsoft.Azure.Mobile.Server.Notifications.IPushMessage message);
abstract member SendAsync : Microsoft.Azure.Mobile.Server.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendAsync : Microsoft.Azure.Mobile.Server.Notifications.IPushMessage -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage) As Task(Of NotificationOutcome)
パラメーター
- message
- IPushMessage
通知ペイロードは、、ApplePushMessage、または TemplatePushMessageのいずれかWindowsPushMessageです。
戻り値
Task<TResult>通知送信操作を表す 。
適用対象
SendAsync(IPushMessage, IEnumerable<String>)
注意事項
This method is obsolete. You should use the HubClient.SendNotificationAsync() method instead.
指定されたタグ式を使用して通知ハブに通知を送信します。
[System.Obsolete("This method is obsolete. You should use the HubClient.SendNotificationAsync() method instead.")]
public virtual System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAsync (Microsoft.Azure.Mobile.Server.Notifications.IPushMessage message, System.Collections.Generic.IEnumerable<string> tags);
[<System.Obsolete("This method is obsolete. You should use the HubClient.SendNotificationAsync() method instead.")>]
abstract member SendAsync : Microsoft.Azure.Mobile.Server.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendAsync : Microsoft.Azure.Mobile.Server.Notifications.IPushMessage * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tags As IEnumerable(Of String)) As Task(Of NotificationOutcome)
パラメーター
- message
- IPushMessage
通知ペイロードは、、ApplePushMessage、または TemplatePushMessageのいずれかWindowsPushMessageです。
- tags
- IEnumerable<String>
この通知に使用するタグのセット。
戻り値
Task<TResult>通知送信操作を表す 。
- 属性
注釈
このメソッドは、互換性のために残されています。 代わりに HubClient.SendNotificationAsync() メソッドを使用する必要があります。
適用対象
SendAsync(IPushMessage, String)
指定されたタグ式を使用して通知ハブに通知を送信します。
public virtual System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome> SendAsync (Microsoft.Azure.Mobile.Server.Notifications.IPushMessage message, string tagExpression);
abstract member SendAsync : Microsoft.Azure.Mobile.Server.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendAsync : Microsoft.Azure.Mobile.Server.Notifications.IPushMessage * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Overridable Function SendAsync (message As IPushMessage, tagExpression As String) As Task(Of NotificationOutcome)
パラメーター
- message
- IPushMessage
通知ペイロードは、、ApplePushMessage、または TemplatePushMessageのいずれかWindowsPushMessageです。
- tagExpression
- String
この通知に使用するタグの組み合わせを表すタグ式。
戻り値
Task<TResult>通知送信操作を表す 。
適用対象
Azure SDK for .NET