Compartilhar via


Entity.Subscribe método

Namespace:  Microsoft.BusinessData.MetadataModel
Assemblies:   Microsoft.SharePoint.Client.Silverlight (em Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client.Phone (em Microsoft.SharePoint.Client.Phone.dll)  Microsoft.SharePoint.Client (em Microsoft.SharePoint.Client.dll)

Sintaxe

'Declaração
Public Function Subscribe ( _
    eventType As EntityEventType, _
    notificationCallback As NotificationCallback, _
    onBehalfOfUser As String, _
    subscriberName As String, _
    lobSystemInstance As LobSystemInstance _
) As Subscription
'Uso
Dim instance As Entity
Dim eventType As EntityEventType
Dim notificationCallback As NotificationCallback
Dim onBehalfOfUser As String
Dim subscriberName As String
Dim lobSystemInstance As LobSystemInstance
Dim returnValue As Subscription

returnValue = instance.Subscribe(eventType, _
    notificationCallback, onBehalfOfUser, _
    subscriberName, lobSystemInstance)
public Subscription Subscribe(
    EntityEventType eventType,
    NotificationCallback notificationCallback,
    string onBehalfOfUser,
    string subscriberName,
    LobSystemInstance lobSystemInstance
)

Parâmetros

Valor retornado

Tipo: Microsoft.BusinessData.Runtime.Subscription

Ver também

Referência

Entity classe

Entity membros

Microsoft.BusinessData.MetadataModel namespace