ManagedInstance.AgentProxyAccount 속성

Gets the SQL Server Agent proxy account used to run scheduled jobs on the instance of 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
A String value that specifies the name of the SQL Server Agent proxy account.

주의

The SQL Server Agent proxy account can be used to run scheduled policy checks on the instance of 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 

참고 항목

참조

ManagedInstance 클래스

Microsoft.SqlServer.Management.Utility 네임스페이스