ProxyAccount.EnumServerRoles 方法

Enumerates a list of Microsoft SQL Server server roles associated with the referenced proxy account.

命名空间:  Microsoft.SqlServer.Management.Smo.Agent
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function EnumServerRoles As DataTable
用法
Dim instance As ProxyAccount 
Dim returnValue As DataTable 

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

返回值

类型:System.Data.DataTable
A DataTable object value that contains a table of information about the SQL Server server roles that are associated with the referenced proxy account.

示例

在 SQL Server 代理中计划自动管理任务

请参阅

参考

ProxyAccount 类

Microsoft.SqlServer.Management.Smo.Agent 命名空间

其他资源

自动执行管理任务(SQL Server 代理)

sp_help_proxy (Transact-SQL)