DisplayName Property (SqlService Class)

Gets the display name of the service.

Syntax


object.DisplayName [= value]  

Parts

object
A SqlService Class object that represents the service.

Property Value/Return Value

A string value that specifies the display name of the service.

Remarks

This string has a maximum length of 256 characters. The name is case-preserved in the SQL Server Configuration Manager. However, display name comparisons are always case-insensitive.

Example

mysqlservice.DisplayName = "Atdisk"  

See Also

Starting and Stopping Services