次の方法で共有


AgentProxyAccount プロパティ

SQL Server のインスタンスに対して定期ジョブを実行するために使用される、SQL Server エージェント プロキシ アカウントを取得します。

名前空間:  Microsoft.SqlServer.Management.Utility
アセンブリ:  Microsoft.SqlServer.Management.Utility (Microsoft.SqlServer.Management.Utility.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Required Or SfcPropertyFlags.Data)> _
Public Property AgentProxyAccount As String
    Get
    Private Set
'使用
Dim instance As ManagedInstance
Dim value As String

value = instance.AgentProxyAccount
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.Data)]
public string AgentProxyAccount { get; private set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Required|SfcPropertyFlags::Data)]
public:
property String^ AgentProxyAccount {
    String^ get ();
    private: void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Required|SfcPropertyFlags.Data)>]
member AgentProxyAccount : string with get, private set
function get AgentProxyAccount () : String
private function set AgentProxyAccount (value : String)

プロパティ値

型: System. . :: . .String
SQL Server エージェント プロキシ アカウントの名前を示す String 値です。

説明

SQL Server エージェント プロキシ アカウントを使用すると、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