TeamFoundationSqlNotificationService.RegisterNotification 方法 (TeamFoundationRequestContext, String, Guid, SqlNotificationCallback, Boolean)

RegisterNotification 用于注册回调。eventClass 在数据库中。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
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
)

参数

  • databaseCategory
    类型:System.String
    连接通知的数据库。
  • eventClass
    类型:System.Guid
    侦听的通知类型。
  • filterByAuthor
    类型:System.Boolean
    调用方是否希望了解创作自筛选的通知。

返回值

类型:System.Boolean
返回 true,如果通知成功是寄存器,错误,如果没有。

Implements

ITeamFoundationSqlNotificationService.RegisterNotification(TeamFoundationRequestContext, String, Guid, SqlNotificationCallback, Boolean)

.NET Framework 安全性

请参阅

参考

TeamFoundationSqlNotificationService 类

RegisterNotification 重载

Microsoft.TeamFoundation.Framework.Server 命名空间