NotificationHub.RegisterTemplateAsync Method (String, String, String, IEnumerable(Of String))
Asynchronously creates a new (or updates an existing) template registration.
Assembly: Microsoft.WindowsAzure.Messaging (in Microsoft.WindowsAzure.Messaging.dll)
Public Function RegisterTemplateAsync ( channelUri As String, xmlTemplate As String, templateName As String, tags As IEnumerable(Of String) ) As Task(Of TemplateRegistration)
Parameters
- channelUri
-
Type:
System.String
The channel URI.
- xmlTemplate
-
Type:
System.String
The xml template.
- templateName
-
Type:
System.String
The template name.
- tags
-
Type:
System.Collections.Generic.IEnumerable(Of String)
The tags.
Return Value
Type: System.Threading.Tasks.Task(Of TemplateRegistration)The task that performs the registration.
Devices registered in this way can only receive notifications sent in template format.
Show: