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] ,如果宿主在超时时间已停止。

.NET Framework 安全性

请参见

参考

TeamFoundationHostManagementService 类

Microsoft.TeamFoundation.Framework.Server 命名空间