NotificationHub.RegisterTemplateAsync Method (String, String, String)


Asynchronously creates a new (or updates an existing) template registration.

Namespace:   Microsoft.WindowsAzure.Messaging
Assembly:  Microsoft.WindowsAzure.Messaging (in Microsoft.WindowsAzure.Messaging.dll)


public Task<TemplateRegistration> RegisterTemplateAsync(
    string channelUri,
    string xmlTemplate,
    string templateName
Task<TemplateRegistration^>^ RegisterTemplateAsync(
    String^ channelUri,
    String^ xmlTemplate,
    String^ templateName
member RegisterTemplateAsync : 
        channelUri:string *
        xmlTemplate:string *
        templateName:string -> Task<TemplateRegistration>
Public Function RegisterTemplateAsync (
    channelUri As String,
    xmlTemplate As String,
    templateName As String
) As Task(Of TemplateRegistration)


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.

See Also

RegisterTemplateAsync Overload
NotificationHub Class
Microsoft.WindowsAzure.Messaging Namespace

Return to top