Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RegisterPushNotificationSubscriber method

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
)

Parameters

deviceAppInstanceId
Type: System.Guid

Device app instance identifier.

serviceToken
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.

Show:
© 2015 Microsoft