NotificationHubClient.SendWindowsNativeNotificationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendWindowsNativeNotificationAsync(String, IEnumerable<String>, CancellationToken) |
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) |
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, CancellationToken) |
Asynchronously sends a Windows native notification. To specify headers for WNS, use the SendNotificationAsync(Notification) method. |
SendWindowsNativeNotificationAsync(String, String, CancellationToken) |
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, IEnumerable<String>, CancellationToken)
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, System.Threading.CancellationToken cancellationToken);
abstract member SendWindowsNativeNotificationAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendWindowsNativeNotificationAsync : string * seq<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendWindowsNativeNotificationAsync (windowsNativePayload As String, tags As IEnumerable(Of String), cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Parameters
- windowsNativePayload
- String
The Windows native payload. This can be used to send any valid WNS notification, including Tile, Toast, and Badge values, as described in the WNS documentation.
- tags
- IEnumerable<String>
A non-empty set of tags (max 20 tags). Each string in the set can contain a single tag.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
NotificationOutcome which describes the result of the Send operation.
Implements
Applies to
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);
abstract member SendWindowsNativeNotificationAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendWindowsNativeNotificationAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendWindowsNativeNotificationAsync (windowsNativePayload As String) As Task(Of NotificationOutcome)
Parameters
- windowsNativePayload
- String
The Windows native payload. This can be used to send any valid WNS notification, including Tile, Toast, and Badge values, as described in the WNS documentation.
Returns
NotificationOutcome which describes the result of the Send operation.
Implements
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);
abstract member SendWindowsNativeNotificationAsync : string * seq<string> -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override 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
- String
The Windows native payload. This can be used to send any valid WNS notification, including Tile, Toast, and Badge values, as described in the WNS documentation.
- tags
- IEnumerable<String>
A non-empty set of tags (max 20 tags). Each string in the set can contain a single tag.
Returns
NotificationOutcome which describes the result of the Send operation.
Implements
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);
abstract member SendWindowsNativeNotificationAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override 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
- String
The Windows native payload. This can be used to send any valid WNS notification, including Tile, Toast, and Badge values, as described in the WNS documentation.
- tagExpression
- 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
NotificationOutcome which describes the result of the Send operation.
Implements
Applies to
SendWindowsNativeNotificationAsync(String, CancellationToken)
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, System.Threading.CancellationToken cancellationToken);
abstract member SendWindowsNativeNotificationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendWindowsNativeNotificationAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendWindowsNativeNotificationAsync (windowsNativePayload As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Parameters
- windowsNativePayload
- String
The Windows native payload. This can be used to send any valid WNS notification, including Tile, Toast, and Badge values, as described in the WNS documentation.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
NotificationOutcome which describes the result of the Send operation.
Implements
Applies to
SendWindowsNativeNotificationAsync(String, String, CancellationToken)
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, System.Threading.CancellationToken cancellationToken);
abstract member SendWindowsNativeNotificationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
override this.SendWindowsNativeNotificationAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.NotificationHubs.NotificationOutcome>
Public Function SendWindowsNativeNotificationAsync (windowsNativePayload As String, tagExpression As String, cancellationToken As CancellationToken) As Task(Of NotificationOutcome)
Parameters
- windowsNativePayload
- String
The Windows native payload. This can be used to send any valid WNS notification, including Tile, Toast, and Badge values, as described in the WNS documentation.
- tagExpression
- 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.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for a task to complete.
Returns
NotificationOutcome which describes the result of the Send operation.
Implements
Applies to
Azure SDK for .NET