Share via


TeamFoundationSqlNotificationService.RegisterNotification Method (TeamFoundationRequestContext, String, Guid, SqlNotificationCallback, Boolean)

RegisterNotification is used to register a callback for an eventClass in a database.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function RegisterNotification ( _
    requestContext As TeamFoundationRequestContext, _
    databaseCategory As String, _
    eventClass As Guid, _
    callback As SqlNotificationCallback, _
    filterByAuthor As Boolean _
) As Boolean
public bool RegisterNotification(
    TeamFoundationRequestContext requestContext,
    string databaseCategory,
    Guid eventClass,
    SqlNotificationCallback callback,
    bool filterByAuthor
)
public:
bool RegisterNotification(
    TeamFoundationRequestContext^ requestContext, 
    String^ databaseCategory, 
    Guid eventClass, 
    SqlNotificationCallback^ callback, 
    bool filterByAuthor
)
member RegisterNotification : 
        requestContext:TeamFoundationRequestContext * 
        databaseCategory:string * 
        eventClass:Guid * 
        callback:SqlNotificationCallback * 
        filterByAuthor:bool -> bool
public function RegisterNotification(
    requestContext : TeamFoundationRequestContext, 
    databaseCategory : String, 
    eventClass : Guid, 
    callback : SqlNotificationCallback, 
    filterByAuthor : boolean
) : boolean

Parameters

  • databaseCategory
    Type: System.String

    Database to connect the notification to.

  • eventClass
    Type: System.Guid

    The type of notification to listen for.

  • filterByAuthor
    Type: System.Boolean

    Whether or not the caller wants notifications filtered that were self authored.

Return Value

Type: System.Boolean
Returns true if the notification was successfully register, false if not.

.NET Framework Security

See Also

Reference

TeamFoundationSqlNotificationService Class

RegisterNotification Overload

Microsoft.TeamFoundation.Framework.Server Namespace