Compartir a través de


AgentServiceAccount Propiedad

Gets the service account for the SQL Server Agent service.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
ReadOnly Property AgentServiceAccount As String
    Get
'Uso
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

Valor de la propiedad

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