Delen via


EventWebService.SubscribeEvent Method

Namespace:  Microsoft.TeamFoundation.Server.Core.WebServices
Assembly:  Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function SubscribeEvent ( _
    userId As String, _
    eventType As String, _
    filterExpression As String, _
    preferences As DeliveryPreference _
) As Integer
[WebMethodAttribute]
public int SubscribeEvent(
    string userId,
    string eventType,
    string filterExpression,
    DeliveryPreference preferences
)
[WebMethodAttribute]
public:
int SubscribeEvent(
    String^ userId, 
    String^ eventType, 
    String^ filterExpression, 
    DeliveryPreference^ preferences
)
[<WebMethodAttribute>]
member SubscribeEvent : 
        userId:string * 
        eventType:string * 
        filterExpression:string * 
        preferences:DeliveryPreference -> int
public function SubscribeEvent(
    userId : String, 
    eventType : String, 
    filterExpression : String, 
    preferences : DeliveryPreference
) : int

Parameters

Return Value

Type: System.Int32
Returns Int32.

.NET Framework Security

See Also

Reference

EventWebService Class

Microsoft.TeamFoundation.Server.Core.WebServices Namespace