IServerSetupFacet.AgentServiceAccount 屬性
Gets the service account for the SQL Server Agent service.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<DisplayNameKeyAttribute("JobServer_ServiceAccountName")> _
<DisplayDescriptionKeyAttribute("JobServer_ServiceAccountDesc")> _
ReadOnly Property AgentServiceAccount As String
Get
'用途
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
屬性值
型別:System.String
A String value that specifies the service account for the SQL Server Agent.