BuildServiceHostProcess.GetStatus Method
Get windows service status or its reasonable analog for an interactive service.
Namespace: Microsoft.TeamFoundation.Build.Config
Assembly: Microsoft.TeamFoundation.Build.Config (in Microsoft.TeamFoundation.Build.Config.dll)
Syntax
'Declaration
Public Shared Function GetStatus As ServiceControllerStatus
public static ServiceControllerStatus GetStatus()
public:
static ServiceControllerStatus GetStatus()
static member GetStatus : unit -> ServiceControllerStatus
public static function GetStatus() : ServiceControllerStatus
Return Value
Type: System.ServiceProcess.ServiceControllerStatus
Status
.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.