Partilhar via


Método ServerRole.EnumAgentProxyAccounts

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 (em Microsoft.SqlServer.Smo.dll)

Sintaxe

'Declaração
Public Function EnumAgentProxyAccounts As DataTable
'Uso
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

Valor de retorno

Tipo: 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.

Exemplos

Gerenciando usuários, funções e logons

Consulte também

Referência

ServerRole Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Permissões de funções de servidor fixas (Mecanismo de Banco de Dados)

sp_addsrvrolemember (Transact-SQL)