TeamFoundationSqlNotificationService.RegisterNotificationHierarchy Method (TeamFoundationRequestContext, String, Guid, SqlNotificationCallback, Boolean)
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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextDatabase to connect the notification to.
databaseCategory
Type: System.StringThe type of notification to listen for.
eventClass
Type: System.GuidThe type of notification to listen for.
callback
Type: Microsoft.TeamFoundation.Framework.Server.SqlNotificationCallbackThe callback 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