다음을 통해 공유


AgentServiceAccount 속성

Gets the service account for the SQL Server Agent service.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
ReadOnly Property AgentServiceAccount As String
    Get
‘사용 방법
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

속성 값

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

예제

속성 설정