Share via


IsActive Method

The IsActive method of the Service class returns a Boolean value that indicates the status of the Service object.

Return Value

 true if the Service object is online; otherwise, false.

Remarks

The IsActive method returns true if both the Service object and the Server object hosting the Service object report that they are online; otherwise, it returns false.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security