Condividi tramite


Proprietà ServiceName

Gets the service name.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")> _
<DisplayNameKeyAttribute("Server_ServiceNameName")> _
ReadOnly Property ServiceName As String
    Get
'Utilizzo
Dim instance As IServerSetupFacet
Dim value As String

value = instance.ServiceName
[DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")]
[DisplayNameKeyAttribute("Server_ServiceNameName")]
string ServiceName { get; }
[DisplayDescriptionKeyAttribute(L"Server_ServiceNameDesc")]
[DisplayNameKeyAttribute(L"Server_ServiceNameName")]
property String^ ServiceName {
    String^ get ();
}
[<DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")>]
[<DisplayNameKeyAttribute("Server_ServiceNameName")>]
abstract ServiceName : string
function get ServiceName () : String

Valore proprietà

Tipo: System. . :: . .String
A String value that specifies the service name.