Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context
hostId
Type: System.GuidThe ID of the host to stop
reason
Type: System.StringAn optional reason the host is being stopped
timeout
Type: System.TimeSpanThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.