SPWeb.RegisterPushNotificationSubscriber method

SharePoint 2013

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 SPPushNotificationSubscriber RegisterPushNotificationSubscriber(
	Guid deviceAppInstanceId,
	string serviceToken
)

Parameters

deviceAppInstanceId
Type: System.Guid
serviceToken
Type: System.String

Return value

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