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
timeout
Type: System.TimeSpanTimeout
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.