Gets or sets the name that identifies the service that this instance references.
Assembly: System.ServiceProcess (in System.ServiceProcess.dll)
The ServiceController instance to bind to another service, it does not change what the Service Control Manager's Microsoft Management Console snap-in displays.identifies the service to the Service Control Manager. Changing this property causes the
When you are implementing a custom service, the value of this property must be identical to the name recorded for the service in the ServiceName property of the corresponding ServiceInstaller class. In code, the is usually set in the main() function of the executable.
When you reset the DisplayName to an empty string ("").property, the method that sets the property sets this instance's
Available since 10
Available since 1.1