Condividi tramite


Proprietà AgentServiceAccount

Gets the service account for the SQL Server Agent service.

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

Sintassi

'Dichiarazione
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
ReadOnly Property AgentServiceAccount As String
    Get
'Utilizzo
Dim instance As IServerSetupFacet
Dim value As String

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

Valore proprietà

Tipo: System. . :: . .String
A String value that specifies the service account for the SQL Server Agent.