INotificationHandler.Unregister Method (ApiServices, HttpRequestContext, String)
This method is called when a client is unregistering to no longer receive notifications. It is called just before the request is submitted to the Notification Hub.
Assembly: Microsoft.WindowsAzure.Mobile.Service (in Microsoft.WindowsAzure.Mobile.Service.dll)
Function Unregister ( services As ApiServices, context As HttpRequestContext, deviceId As String ) As Task
Parameters
- services
-
Type:
Microsoft.WindowsAzure.Mobile.Service.ApiServices
The ApiServices for this service.
- context
-
Type:
System.Web.Http.Controllers.HttpRequestContext
The HttpRequestContext providing information about the request.
- deviceId
-
Type:
System.String
The id identifying the registration.
Return Value
Type: System.Threading.Tasks.TaskA Task representing the unregistration handler operation.
If this method throws an HttpResponseException then the registration process will terminate immediately and the HttpResponseMessage will be used as the HTTP response. Any other unhandled exception will cause the registration process to terminate with an error.
Show: