Freigeben über


ServerRole.EnumAgentProxyAccounts-Methode

Enumerates a list of the SQL Server Agent proxy account to which the server role belongs.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function EnumAgentProxyAccounts As DataTable
'Usage
Dim instance As ServerRole 
Dim returnValue As DataTable 

returnValue = instance.EnumAgentProxyAccounts()
public DataTable EnumAgentProxyAccounts()
public:
DataTable^ EnumAgentProxyAccounts()
member EnumAgentProxyAccounts : unit -> DataTable
public function EnumAgentProxyAccounts() : DataTable

Rückgabewert

Typ: System.Data.DataTable
A DataTable system object value that contains an enumerated list of information about SQL Server Agent proxy accounts to which the referenced server role belongs.

Beispiele

Verwalten von Benutzern, Rollen und Anmeldungen

Siehe auch

Verweis

ServerRole Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Berechtigungen der festen Serverrollen (Datenbankmodul)

sp_addsrvrolemember (Transact-SQL)