共用方式為


TeamFoundationMessageBusService.Subscribe 方法

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

語法

'宣告
Public Sub Subscribe ( _
    requestContext As TeamFoundationRequestContext, _
    messageBusName As String, _
    action As Action(Of TeamFoundationRequestContext, IMessage), _
    exceptionHandler As Action(Of Exception) _
)
public void Subscribe(
    TeamFoundationRequestContext requestContext,
    string messageBusName,
    Action<TeamFoundationRequestContext, IMessage> action,
    Action<Exception> exceptionHandler
)

參數

實作

IMessageProvider.Subscribe(TeamFoundationRequestContext, String, Action<TeamFoundationRequestContext, IMessage>, Action<Exception>)

.NET Framework 安全性

請參閱

參考

TeamFoundationMessageBusService 類別

Microsoft.TeamFoundation.Framework.Server 命名空間