Share via


ITeamFoundationHostManagementService.StopHost Method

Synchronously stops the service host in all active processes.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Function StopHost ( _
    requestContext As TeamFoundationRequestContext, _
    hostId As Guid, _
    reason As String, _
    timeout As TimeSpan _
) As Boolean
bool StopHost(
    TeamFoundationRequestContext requestContext,
    Guid hostId,
    string reason,
    TimeSpan timeout
)
bool StopHost(
    TeamFoundationRequestContext^ requestContext, 
    Guid hostId, 
    String^ reason, 
    TimeSpan timeout
)
abstract StopHost : 
        requestContext:TeamFoundationRequestContext * 
        hostId:Guid * 
        reason:string * 
        timeout:TimeSpan -> bool
function StopHost(
    requestContext : TeamFoundationRequestContext, 
    hostId : Guid, 
    reason : String, 
    timeout : TimeSpan
) : boolean

Parameters

  • reason
    Type: System.String

    An optional reason the host is being stopped

  • timeout
    Type: System.TimeSpan

    The time to wait for successful completion. TimeSpan.MaxValue is treated as an infinite timeout.

Return Value

Type: System.Boolean
True if the host stopped within the timeout period.

.NET Framework Security

See Also

Reference

ITeamFoundationHostManagementService Interface

Microsoft.TeamFoundation.Framework.Server Namespace