Share via


TeamFoundationSqlNotificationService.RegisterNotificationHierarchy Method (TeamFoundationRequestContext, String, Guid, SqlNotificationHandler, Boolean)

RegisterNotificationHeirarchy is used to register a callback for an eventClass within a database on each of the RequestContexts from the provided requestContext to the root.

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

Syntax

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

Parameters

  • databaseCategory
    Type: System.String

    The type of notification to listen for.

  • 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
True if all notifications were registered successfully, false if not.

.NET Framework Security

See Also

Reference

TeamFoundationSqlNotificationService Class

RegisterNotificationHierarchy Overload

Microsoft.TeamFoundation.Framework.Server Namespace