Share via


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,如果通知成功註冊,則為。

.NET Framework 安全性

請參閱

參考

TeamFoundationSqlNotificationService 類別

RegisterNotification 多載

Microsoft.TeamFoundation.Framework.Server 命名空間