NotificationHubClient.SendWindowsNativeNotificationAsync Method

Definition

Overloads

SendWindowsNativeNotificationAsync(String)

Asynchronously sends a Windows native notification. To specify headers for WNS, use the SendNotificationAsync(Notification) method.

SendWindowsNativeNotificationAsync(String, IEnumerable<String>)

Asynchronously sends a Windows native notification to a non-empty set of tags (max 20). This is equivalent to a tag expression with boolean ORs ("||"). To specify headers for WNS, use the SendNotificationAsync(Notification) method.

SendWindowsNativeNotificationAsync(String, String)

Asynchronously sends a Windows native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify headers for WNS, use the SendNotificationAsync(Notification) method.

SendWindowsNativeNotificationAsync(String)

Asynchronously sends a Windows native notification. To specify headers for WNS, use the SendNotificationAsync(Notification) method.

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

Parameters

windowsNativePayload
System.String

The Windows native payload.

Returns

System.Threading.Tasks.Task<NotificationOutcome>

The task that completes the asynchronous operation.

Applies to

SendWindowsNativeNotificationAsync(String, IEnumerable<String>)

Asynchronously sends a Windows native notification to a non-empty set of tags (max 20). This is equivalent to a tag expression with boolean ORs ("||"). To specify headers for WNS, use the SendNotificationAsync(Notification) method.

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

Parameters

windowsNativePayload
System.String

The Windows native payload.

tags
System.Collections.Generic.IEnumerable<System.String>

A non-empty set of tags (max 20 tags). Each string in the set can contain a single tag.

Returns

System.Threading.Tasks.Task<NotificationOutcome>

The task that completes the asynchronous operation.

Applies to

SendWindowsNativeNotificationAsync(String, String)

Asynchronously sends a Windows native notification to a tag expression (a single tag "tag" is a valid tag expression). To specify headers for WNS, use the SendNotificationAsync(Notification) method.

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

Parameters

windowsNativePayload
System.String

The Windows native payload.

tagExpression
System.String

A tag expression is any boolean expression constructed using the logical operators AND (&&), OR (||), NOT (!), and round parentheses. For example: (A || B) && !C. If an expression uses only ORs, it can contain at most 20 tags. Other expressions are limited to 6 tags. Note that a single tag "A" is a valid expression.

Returns

System.Threading.Tasks.Task<NotificationOutcome>

The task that completes the asynchronous operation.

Applies to