Partager via


Web.RegisterPushNotificationSubscriber - Méthode

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.

Espace de noms :  Microsoft.SharePoint.Client
Assemblys :   Microsoft.SharePoint.Client.Silverlight (dans Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (dans Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (dans Microsoft.SharePoint.Client.dll)

Syntaxe

'Déclaration
Public Function RegisterPushNotificationSubscriber ( _
    deviceAppInstanceId As Guid, _
    serviceToken As String _
) As PushNotificationSubscriber
'Utilisation
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
)

Paramètres

  • deviceAppInstanceId
    Type : System.Guid

    Device app instance identifier.

  • serviceToken
    Type : System.String

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

Valeur renvoyée

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

Remarques

The serviceToken parameter must not be une référence Null (Rien dans Visual Basic). It must not be empty.

Voir aussi

Référence

Web classe

Web - Membres

Microsoft.SharePoint.Client - Espace de noms