Share via


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)

Syntax

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

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

Parameters

Return value

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

See also

Reference

SPWeb class

SPWeb members

Microsoft.SharePoint namespace