ServiceOperationGetServiceState Method |
Gets the state of the service.
Namespace:
Xcalibur.WMI.Services
Assembly:
Xcalibur.WMI (in Xcalibur.WMI.dll) Version: 3.0.0.0 (3.0.1.0)
Syntax public static string GetServiceState(
ManagementScope managementScope,
string serviceName
)
Public Shared Function GetServiceState (
managementScope As ManagementScope,
serviceName As String
) As String
public:
static String^ GetServiceState(
ManagementScope^ managementScope,
String^ serviceName
)
static member GetServiceState :
managementScope : ManagementScope *
serviceName : string -> string
Parameters
- managementScope
- Type: System.ManagementManagementScope
The management scope. - serviceName
- Type: SystemString
Name of the service.
Return Value
Type:
StringSee Also