NotificationHub.RegisterTemplateAsync Method (String, XmlDocument, String)
Asynchronously creates a new (or updates an existing) template registration.
Assembly: Microsoft.WindowsAzure.Messaging.Managed (in Microsoft.WindowsAzure.Messaging.Managed.dll)
public Task<TemplateRegistration> RegisterTemplateAsync( string channelUri, XmlDocument xmlTemplate, string templateName )
Parameters
- channelUri
-
Type:
System.String
The channel URI.
- xmlTemplate
-
Type:
Windows.Data.Xml.Dom.XmlDocument
The xml template.
- templateName
-
Type:
System.String
The template name.
Return Value
Type: System.Threading.Tasks.Task<TemplateRegistration>The task that performs the registration.
Devices registered in this way can only receive notifications sent in template format.
Show: