Enumerates a list of server permissions for the instance of Microsoft SQL Server.
备注
已更新的文本:
Use this method to return an array of ServerPermissionInfo objects that contain information about the permissions currently set on the instance of SQL Server.
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
重载列表
| 名称 | Description | 
|---|---|
| Server.EnumServerPermissions () | 
Enumerates a list of server permissions for the instance of Microsoft SQL Server.
 | 
| Server.EnumServerPermissions (ServerPermissionSet) | 
Enumerates a list of server permissions for a specified permission on the instance of Microsoft SQL Server.
 | 
| Server.EnumServerPermissions (String) | 
Enumerates a list of server permissions for a specified grantee on the instance of Microsoft SQL Server.
 | 
| Server.EnumServerPermissions (String, ServerPermissionSet) | 
Enumerates a list of server permissions for a specified grantee and a specified permission on the instance of Microsoft SQL Server.
 | 
请参阅
参考
Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace
其他资源
How to: Grant Server Permissions in Visual Basic .NET
Calling Methods
管理服务器