Web.RegisterPushNotificationSubscriber method

SharePoint 2013

Return a GUID, and registers the push notification subscriber for the site. If the registration already exists, the service token is updated with the new value.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (in Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

public PushNotificationSubscriber RegisterPushNotificationSubscriber(
	Guid deviceAppInstanceId,
	string serviceToken


Type: System.Guid

Device app instance identifier.

Type: System.String

Token provided by the notification service to the device to receive notifications.

Return value

Type: Microsoft.SharePoint.Client.PushNotificationSubscriber
Registered push notification subscriber.

The serviceToken parameter must not be a null reference (Nothing in Visual Basic). It must not be empty.