Web.RegisterPushNotificationSubscriber 方法

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.

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Function RegisterPushNotificationSubscriber ( _
    deviceAppInstanceId As Guid, _
    serviceToken As String _
) As PushNotificationSubscriber
用法
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
)

参数

  • deviceAppInstanceId
    类型:System.Guid

    Device app instance identifier.

  • serviceToken
    类型:System.String

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

返回值

类型:Microsoft.SharePoint.Client.PushNotificationSubscriber
Registered push notification subscriber.

备注

The serviceToken parameter must not be 空引用(无 在 Visual Basic 中). It must not be empty.

另请参阅

引用

Web 类

Web 成员

Microsoft.SharePoint.Client 命名空间