Freigeben über


NotificationHubClient.SendAdmNativeNotificationAsync Methode

Definition

Überlädt

SendAdmNativeNotificationAsync(String, CancellationToken)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, String, CancellationToken)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, String)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, IEnumerable<String>)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

SendAdmNativeNotificationAsync(String, CancellationToken)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

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

Parameter

jsonPayload
String

Eine gültige ADM-JSON-Nutzlast, die hier ausführlich beschrieben wird.

cancellationToken
CancellationToken

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

Gibt zurück

NotificationOutcome , die das Ergebnis des Sendevorgangs beschreibt.

Implementiert

Gilt für:

SendAdmNativeNotificationAsync(String, String, CancellationToken)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

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

Parameter

jsonPayload
String

Eine gültige ADM-JSON-Nutzlast, die hier ausführlich beschrieben wird.

tagExpression
String

Ein Tagausdruck ist ein beliebiger boolescher Ausdruck, der mit den logischen Operatoren AND (&&), OR (||), NOT (!) und runden Klammern erstellt wird. Beispiel: (A || B) && !C. Wenn ein Ausdruck nur ORs verwendet, kann er höchstens 20 Tags enthalten. Andere Ausdrücke sind auf 6 Tags beschränkt. Beachten Sie, dass ein einzelnes Tag "A" ein gültiger Ausdruck ist.

cancellationToken
CancellationToken

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

Gibt zurück

NotificationOutcome , die das Ergebnis des Sendevorgangs beschreibt.

Implementiert

Gilt für:

SendAdmNativeNotificationAsync(String, IEnumerable<String>, CancellationToken)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

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

Parameter

jsonPayload
String

Eine gültige ADM-JSON-Nutzlast, die hier ausführlich beschrieben wird.

tags
IEnumerable<String>

Ein nicht leerer Satz von Tags (maximal 20 Tags). Jede Zeichenfolge im Satz kann ein einzelnes Tag enthalten.

cancellationToken
CancellationToken

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

Gibt zurück

NotificationOutcome , die das Ergebnis des Sendevorgangs beschreibt.

Implementiert

Gilt für:

SendAdmNativeNotificationAsync(String, String)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

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

Parameter

jsonPayload
String

Eine gültige ADM-JSON-Nutzlast, die hier ausführlich beschrieben wird.

tagExpression
String

Ein Tagausdruck ist ein beliebiger boolescher Ausdruck, der mit den logischen Operatoren AND (&&), OR (||), NOT (!) und runden Klammern erstellt wird. Beispiel: (A || B) && !C. Wenn ein Ausdruck nur ORs verwendet, kann er höchstens 20 Tags enthalten. Andere Ausdrücke sind auf 6 Tags beschränkt. Beachten Sie, dass ein einzelnes Tag "A" ein gültiger Ausdruck ist.

Gibt zurück

NotificationOutcome , die das Ergebnis des Sendevorgangs beschreibt.

Implementiert

Gilt für:

SendAdmNativeNotificationAsync(String, IEnumerable<String>)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

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

Parameter

jsonPayload
String

Eine gültige ADM-JSON-Nutzlast, die hier ausführlich beschrieben wird.

tags
IEnumerable<String>

Ein nicht leerer Satz von Tags (maximal 20 Tags). Jede Zeichenfolge im Satz kann ein einzelnes Tag enthalten.

Gibt zurück

NotificationOutcome , die das Ergebnis des Sendevorgangs beschreibt.

Implementiert

Gilt für:

SendAdmNativeNotificationAsync(String)

Sendet die native ADM-Benachrichtigung (Amazon Device Messaging).

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

Parameter

jsonPayload
String

Eine gültige ADM-JSON-Nutzlast, die hier ausführlich beschrieben wird.

Gibt zurück

NotificationOutcome , die das Ergebnis des Sendevorgangs beschreibt.

Implementiert

Gilt für: