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, _
    isInteractive As Boolean, _
    <OutAttribute> ByRef message As String _
) As Boolean
public static bool Stop(
    TimeSpan timeout,
    bool isInteractive,
    out string message
)
public:
static bool Stop(
    TimeSpan timeout, 
    bool isInteractive, 
    [OutAttribute] String^% message
)
static member Stop : 
        timeout:TimeSpan * 
        isInteractive:bool * 
        message:string byref -> bool
public static function Stop(
    timeout : TimeSpan, 
    isInteractive : boolean, 
    message : String
) : boolean
Parameters
- timeout 
 Type: System.TimeSpan- Timeout 
- isInteractive
 Type: System.Boolean
- 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
- 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.