Sdílet prostřednictvím


Service.DisplayName Property

Gets the display name of the SQL Server service.

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public ReadOnly Property DisplayName As String
    Get
'Usage
Dim instance As Service
Dim value As String

value = instance.DisplayName
public string DisplayName { get; }
public:
property String^ DisplayName {
    String^ get ();
}
member DisplayName : string
function get DisplayName () : String

Property Value

Type: System.String
A String value that specifies the display name of the SQL Server service.