مشاركة عبر


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.

Examples

Managing Services and Network Settings by Using WMI Provider

See Also

Reference

Service Class

Microsoft.SqlServer.Management.Smo.Wmi Namespace

Other Resources

WMI and SQL Server

Connecting to the SQL Server Database Engine