言語

ManagedInstance.AgentProxyAccount プロパティ

定義

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

プロパティ値

SQL Server エージェントプロキシアカウントの名前を指定するStringの値。

属性

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のインスタンス上でスケジュールされたポリシーチェックを実行するために使用できます。

適用対象