Skip to main content
Version: 10.1

pc:ServiceState

note

This article is about the pc:ServiceState Blend directive.

pc:ServiceState

Outputs the state of a Windows service on the local computer.

Syntax

<pc:ServiceState servicename="*servicename*" />

Example

<pc:ServiceState servicename="RulesService-7779"/>

Output values

Output values are as follows:

Output valueMeaning
Running

The Windows Service is running.

The Services panel shows Status = Running.

Stopped

The Windows Service is not running.

The Services panel shows Status = (none).