Freigeben über


Web.RegisterPushNotificationSubscriber-Methode

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
Assemblys:   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)

Syntax

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

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

Parameter

  • deviceAppInstanceId
    Typ: System.Guid

    Device app instance identifier.

  • serviceToken
    Typ: System.String

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

Rückgabewert

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

Hinweise

The serviceToken parameter must not be ein Nullverweis (Nothing in Visual Basic). It must not be empty.

Siehe auch

Referenz

Web Klasse

Web-Member

Microsoft.SharePoint.Client-Namespace