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
)
參數
- 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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。