SPWeb.RegisterPushNotificationSubscriber method

Registers the subscriber for push notifications over the site. If the registration already exists, the service token is updated with the new value.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Function RegisterPushNotificationSubscriber ( _
    deviceAppInstanceId As Guid, _
    serviceToken As String _
) As SPPushNotificationSubscriber
Dim instance As SPWeb
Dim deviceAppInstanceId As Guid
Dim serviceToken As String
Dim returnValue As SPPushNotificationSubscriber

returnValue = instance.RegisterPushNotificationSubscriber(deviceAppInstanceId, _
public SPPushNotificationSubscriber RegisterPushNotificationSubscriber(
    Guid deviceAppInstanceId,
    string serviceToken


Return value

Type: Microsoft.SharePoint.SPPushNotificationSubscriber
Registered push notification subscriber.

See also


SPWeb class

SPWeb members

Microsoft.SharePoint namespace