共用方式為


TeamFoundationSqlNotificationService 類別

繼承階層架構

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationSqlNotificationService

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
<TeamFoundationServiceDependency(GetType(TeamFoundationHostManagementService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationTaskService))> _
Public NotInheritable Class TeamFoundationSqlNotificationService _
    Implements ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationHostManagementService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTaskService))]
public sealed class TeamFoundationSqlNotificationService : ITeamFoundationService

TeamFoundationSqlNotificationService 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 TeamFoundationSqlNotificationService

回頁首

屬性

  名稱 說明
公用屬性 Author 作者會定義為會產生告知變更的來源。,當他們對通知資料表時,您可以撰寫實作器可以使用這個類別的作者屬性。如果呼叫端想要篩選來自其寫入您可以利用 filterByAuthor 參數,在註冊告知回呼時的事件。

回頁首

方法

  名稱 說明
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 RegisterNotification RegisterNotification 用來註冊回呼會在資料庫中的 eventClass。
公用方法 RegisterNotificationHierarchy RegisterNotificationHeirarchy 用來註冊回呼資料庫中的 eventClass 在從提供的 requestContext 的每 RequestContext 到根項目。
公用方法 SendNotification 傳送的 SQL 通知給這個系統。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 UnregisterNotification UnregisterNotification 用來取消先前已註冊之事件的告知回呼。
公用方法 UnregisterNotificationHierarchy UnregisterNotification 用來從提供的一個取消先前已註冊之事件的告知回呼會在每個 requestContext 到根項目。

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 ITeamFoundationService.ServiceEnd
明確介面實作私用方法 ITeamFoundationService.ServiceStart 初始化 SqlNotificationService

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.Framework.Server 命名空間