TeamFoundationHostManagementService.StopHost 方法

同步停止所有的托管活动进程的服务。

命名空间:  Microsoft.TeamFoundation.Framework.Server
程序集:  Microsoft.TeamFoundation.Framework.Server(在 Microsoft.TeamFoundation.Framework.Server.dll 中)

语法

声明
Public Function StopHost ( _
    requestContext As TeamFoundationRequestContext, _
    hostId As Guid, _
    reason As String, _
    timeout As TimeSpan _
) As Boolean
public bool StopHost(
    TeamFoundationRequestContext requestContext,
    Guid hostId,
    string reason,
    TimeSpan timeout
)

参数

  • reason
    类型:System.String
    一个可选原因托管停止。
  • timeout
    类型:System.TimeSpan
    时间等待成功完成。TimeSpan.MaxValue 将无限超时。

返回值

类型:System.Boolean
如果托管在超时时段,停止则为 true。

实现

ITeamFoundationHostManagementService.StopHost(TeamFoundationRequestContext, Guid, String, TimeSpan)

.NET Framework 安全性

请参阅

参考

TeamFoundationHostManagementService 类

Microsoft.TeamFoundation.Framework.Server 命名空间