TeamFoundationSqlNotificationService.RegisterNotificationHierarchy 方法 (TeamFoundationRequestContext, String, Guid, SqlNotificationCallback, Boolean)
RegisterNotificationHeirarchy 用來註冊回呼資料庫中的 eventClass 在從提供的 requestContext 的每 RequestContext 到根項目。
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Function RegisterNotificationHierarchy ( _
requestContext As TeamFoundationRequestContext, _
databaseCategory As String, _
eventClass As Guid, _
callback As SqlNotificationCallback, _
filterByAuthor As Boolean _
) As Boolean
public bool RegisterNotificationHierarchy(
TeamFoundationRequestContext requestContext,
string databaseCategory,
Guid eventClass,
SqlNotificationCallback callback,
bool filterByAuthor
)
參數
- requestContext
類型:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
連接告知的資料庫。
- databaseCategory
類型:System.String
接聽告知類型。
- eventClass
類型:System.Guid
接聽告知類型。
- callback
類型:Microsoft.TeamFoundation.Framework.Server.SqlNotificationCallback
呼叫以通知完成時呼叫的回呼方法接收。
- filterByAuthor
類型:System.Boolean
呼叫端是否要要是撰寫自已篩選的通知。
傳回值
類型:System.Boolean
則為 true,如果所有通知註冊成功,則為。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
TeamFoundationSqlNotificationService 類別