Share via


BuildServiceHostProcess.Stop Method (TimeSpan, String%)

Stops Windows service/an interactive process.

Namespace:  Microsoft.TeamFoundation.Build.Config
Assembly:  Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)

Syntax

'Declaration
Public Shared Function Stop ( _
    timeout As TimeSpan, _
    <OutAttribute> ByRef message As String _
) As Boolean
public static bool Stop(
    TimeSpan timeout,
    out string message
)
public:
static bool Stop(
    TimeSpan timeout, 
    [OutAttribute] String^% message
)
static member Stop : 
        timeout:TimeSpan * 
        message:string byref -> bool
public static function Stop(
    timeout : TimeSpan, 
    message : String
) : boolean

Parameters

  • message
    Type: System.String%

    In case of success, an empty or warning message is displayed; if a failure occurs, an error message is displayed.

Return Value

Type: System.Boolean
Service/Process stopped.

.NET Framework Security

See Also

Reference

BuildServiceHostProcess Class

Stop Overload

Microsoft.TeamFoundation.Build.Config Namespace