ServiceManager.

Start(string, string, int, string[]) Method

Summary

Starts a named service
Assembly
Cake.Services.dll
Namespace
Cake.Services
Containing Type
ServiceManager

Syntax

public bool Start(string name, string computer = "", int timeout = 60000, string[] args = null)

Parameters

Name Type Description
name string The name that identifies the service to the system.
computer string The computer on which the service resides.
timeout int The duration to wait for the command to complete.
args string[] The arguments to pass to the service when starting

Return Value

Type Description
bool If the service was started.