Share via


TeamFoundationSqlNotificationService.RegisterNotification 方法 (TeamFoundationRequestContext, String, Guid, SqlNotificationHandler, 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, _
    handler As SqlNotificationHandler, _
    filterByAuthor As Boolean _
) As Boolean
public bool RegisterNotification(
    TeamFoundationRequestContext requestContext,
    string databaseCategory,
    Guid eventClass,
    SqlNotificationHandler handler,
    bool filterByAuthor
)

參數

  • eventClass
    類型:System.Guid
    呼叫以通知時所用的處理常式方法接收。

傳回值

類型:System.Boolean
傳回 true,如果通知成功註冊,則為。

Implements

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

.NET Framework 安全性

請參閱

參考

TeamFoundationSqlNotificationService 類別

RegisterNotification 多載

Microsoft.TeamFoundation.Framework.Server 命名空間