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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
databaseCategory
Type: System.StringDatabase to connect the notification to.
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
Returns true if the notification was successfully register, 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.