ManagedInstance.AgentProxyAccount 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取用于在SQL Server实例上运行计划作业的SQL Server 代理代理帐户。
public:
property System::String ^ AgentProxyAccount { System::String ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Required)]
public string AgentProxyAccount { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data | Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Required)>]
member this.AgentProxyAccount : string
Public ReadOnly Property AgentProxyAccount As String
属性值
一个 String 值,该值指定 SQL Server 代理的代理帐户的名称。
- 属性
示例
Vc#
AgentProxyAccount agentProxyAccount;
agentProxyAccount = new AgentProxyAccount ();
System.Console.WriteLine(agentProxyAccount.DateCreated);
VB
Dim agentProxyAccount As AgentProxyAccount
agentProxyAccount = New AgentProxyAccount ()
System.Console.WriteLine(agentProxyAccount.DateCreated)
PowerShell
$agentProxyAccount = New-Object Microsoft.SqlServer.Management.Utility.AgentProxyAccount
Write-Host $agentProxyAccount.DateCreated
注解
SQL Server 代理代理帐户可用于对SQL Server实例运行计划的策略检查。