Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.GuidDevice app instance identifier.
serviceToken
Typ: System.StringToken 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.