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
- deviceAppInstanceId
Type: System.Guid
- serviceToken
Type: System.String
Return value
Type: Microsoft.SharePoint.SPPushNotificationSubscriber
Registered push notification subscriber.