Partager via


ServiceName propriété

Gets the service name.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<DisplayNameKeyAttribute("Server_ServiceNameName")> _
<DisplayDescriptionKeyAttribute("Server_ServiceNameDesc")> _
ReadOnly Property ServiceName As String
    Get
'Utilisation
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

Valeur de la propriété

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