Sdílet prostřednictvím


DatabaseRole.EnumAgentProxyAccounts Method

Returns a list of agent proxy accounts that are assigned to the database role.

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 DatabaseRole 
Dim returnValue As DataTable 

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

Return Value

Type: System.Data.DataTable
A DataTable system object value that contains information about the agent proxy accounts that are assigned to the database role.

Examples

Managing Users, Roles, and Logins

See Also

Reference

DatabaseRole Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Database-Level Roles