NotificationHub.RegisterTemplateAsync Method (String, String, String, IEnumerable<String>)

 

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

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

Syntax

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

Parameters

Return Value

Type: System.Threading.Tasks.Task<TemplateRegistration>

The task that performs the registration.

Remarks

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