IServerSetupFacet.AgentServiceAccount Property

Gets the service account for the SQL Server Agent service.

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

Syntax

'Declaration
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
ReadOnly Property AgentServiceAccount As String
    Get
'Usage
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

Property Value

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