ManagedInstance.AgentProxyAccount Propriété

Définition

Obtient le compte proxy SQL Server Agent utilisé pour exécuter des travaux planifiés sur l’instance de 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

Valeur de propriété

Valeur String qui spécifie le nom du compte proxy de l'Agent SQL Server.

Attributs

Exemples

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   

Remarques

Le compte proxy SQL Server Agent peut être utilisé pour exécuter des vérifications de stratégie planifiées sur l’instance de SQL Server.

S’applique à