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
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
)
public:
bool StopHost(
TeamFoundationRequestContext^ requestContext,
Guid hostId,
String^ reason,
TimeSpan timeout
)
member StopHost :
requestContext:TeamFoundationRequestContext *
hostId:Guid *
reason:string *
timeout:TimeSpan -> bool
public 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 time-out.
Return Value
Type: System.Boolean
[True] if the host stopped in the time-out 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.