Partilhar via


Propriedade ServiceName

Gets the service name.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
<DisplayNameKeyAttribute("Server_ServiceNameName")> _
<DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")> _
ReadOnly Property ServiceName As String
    Get
'Uso
Dim instance As IServerSetupFacet
Dim value As String

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

Valor da propriedade

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