Udostępnij przez


IServerSetupFacet.AgentServiceAccount Property

Gets the service account for the SQL Server Agent service. This property is not CLS-compliant.

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

Syntax

'Deklaracja
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
ReadOnly Property AgentServiceAccount As String
[DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")] 
[DisplayNameKeyAttribute("JobServer_ServiceAccountName")] 
string AgentServiceAccount { get; }
[DisplayDescriptionKeyAttribute(L"JobServer_ServiceAccountDesc")] 
[DisplayNameKeyAttribute(L"JobServer_ServiceAccountName")] 
property String^ AgentServiceAccount {
    String^ get ();
}
/** @property */
String get_AgentServiceAccount ()
function get AgentServiceAccount () : String

Property Value

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.