Aracılığıyla paylaş


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

'Bildirim
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
ReadOnly Property AgentServiceAccount As String
    Get
'Kullanım
Dim instance As IServerSetupFacet
Dim value As String

value = instance.AgentServiceAccount
[DisplayNameKeyAttribute("JobServer_ServiceAccountName")]
[DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")]
string AgentServiceAccount { get; }
[DisplayNameKeyAttribute(L"JobServer_ServiceAccountName")]
[DisplayDescriptionKeyAttribute(L"JobServer_ServiceAccountDesc")]
property String^ AgentServiceAccount {
    String^ get ();
}
[<DisplayNameKeyAttribute("JobServer_ServiceAccountName")>]
[<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")>]
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.

Examples

Setting Properties

See Also

Reference

IServerSetupFacet Interface

Microsoft.SqlServer.Management.Smo Namespace