TestimoX

API Reference

Class

WindowsServiceConfigurationSnapshot

Namespace ComputerX.Services
Assembly ComputerX
Modifiers sealed

Snapshot of a Windows service configuration as stored in the Service Control Manager.

Inheritance

  • Object
  • WindowsServiceConfigurationSnapshot

Constructors

public WindowsServiceConfigurationSnapshot() #

Methods

public static WindowsServiceConfigurationSnapshot Missing(String serviceName) #
Returns: WindowsServiceConfigurationSnapshot

Creates a snapshot representing a missing service.

Parameters

serviceName System.String requiredposition: 0

Properties

public Boolean Exists { get; set; } #

Gets a value indicating whether the service exists.

public String ServiceName { get; set; } #

Gets the service short name.

public String DisplayName { get; set; } #

Gets the display name shown in service management tools.

public String ImagePath { get; set; } #

Gets the configured executable path.

public String AccountName { get; set; } #

Gets the configured logon account.

public String Description { get; set; } #

Gets the configured description.

public ServiceStartupType StartMode { get; set; } #

Gets the service start mode.

public Boolean DelayedAutoStart { get; set; } #

Gets a value indicating whether delayed automatic start is enabled.

public WindowsServiceType ServiceType { get; set; } #

Gets the registered service type.

public WindowsServiceErrorControl ErrorControl { get; set; } #

Gets the configured error control policy.

public IReadOnlyList<String> Dependencies { get; set; } #

Gets the configured dependencies.

public WindowsServiceRecoveryOptions RecoveryOptions { get; set; } #

Gets the configured service recovery policy.