NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ServiceController Constructor (String, String)

Creates a ServiceController object, based on machine and service name.

[Visual Basic]
Overloads Public Sub New( _
   ByVal name As String, _
   ByVal machineName As String _
)
[C#]
public ServiceController(
   string name,
   string machineName
);
[C++]
public: ServiceController(
   String* name,
   String* machineName
);
[JScript]
public function ServiceController(
   name : String,
   machineName : String
);

Parameters

name
is the name of the service to reference.
machineName
is the machine where the service lives. Use "." for local machine.

See Also

ServiceController Class | ServiceController Members | System.ServiceProcess Namespace | ServiceController Constructor Overload List