TeamFoundationSqlNotificationService.RegisterNotificationHierarchy Method

RegisterNotificationHeirarchy is used to register a callback for an eventClass in a database on each RequestContext 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, _
    callback As SqlNotificationCallback, _
    filterByAuthor As Boolean _
) As Boolean
public bool RegisterNotificationHierarchy(
    TeamFoundationRequestContext requestContext,
    string databaseCategory,
    Guid eventClass,
    SqlNotificationCallback callback,
    bool filterByAuthor
)
public:
bool RegisterNotificationHierarchy(
    TeamFoundationRequestContext^ requestContext, 
    String^ databaseCategory, 
    Guid eventClass, 
    SqlNotificationCallback^ callback, 
    bool filterByAuthor
)
member RegisterNotificationHierarchy : 
        requestContext:TeamFoundationRequestContext * 
        databaseCategory:string * 
        eventClass:Guid * 
        callback:SqlNotificationCallback * 
        filterByAuthor:bool -> bool
public function RegisterNotificationHierarchy(
    requestContext : TeamFoundationRequestContext, 
    databaseCategory : String, 
    eventClass : Guid, 
    callback : SqlNotificationCallback, 
    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

Microsoft.TeamFoundation.Framework.Server Namespace