NotificationHub.RegisterAsync Method (Registration)
Creates a new registration (or updates an existing one) as specified in the registration parameter. Depending upon the type of the registration parameter (Registration or TemplateRegistration), the registration of a native or template notification is created or updated.
Namespace: Microsoft.WindowsAzure.Messaging
Assembly: Microsoft.WindowsAzure.Messaging (in Microsoft.WindowsAzure.Messaging.dll)
Syntax
public Task<Registration> RegisterAsync(
Registration registration
)
public:
Task<Registration^>^ RegisterAsync(
Registration^ registration
)
member RegisterAsync :
registration:Registration -> Task<Registration>
Public Function RegisterAsync (
registration As Registration
) As Task(Of Registration)
Parameters
registration
Type: Microsoft.WindowsAzure.Messaging.RegistrationThe notification hub registration.
Return Value
Type: System.Threading.Tasks.Task<Registration>
The task that performs the registration.
See Also
NotificationHub Class
Microsoft.WindowsAzure.Messaging Namespace
Return to top