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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextDatabase to connect the notfication to.
databaseCategory
Type: System.StringThe type of notification to listen for.
eventClass
Type: System.GuidThe type of notification to listen for.
handler
Type: Microsoft.TeamFoundation.Framework.Server.SqlNotificationHandlerThe handler method to call when a notification is received.
filterByAuthor
Type: System.BooleanWhether 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TeamFoundationSqlNotificationService Class