ServerPermissionSet 构造函数 (array<ServerPermission )

Initializes a new instance of the ServerPermissionSet class based on the specified set of permissions.

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

语法

声明
Public Sub New ( _
    ParamArray permissions As ServerPermission() _
)
用法
Dim permissions As ServerPermission()

Dim instance As New ServerPermissionSet(permissions)
public ServerPermissionSet(
    params ServerPermission[] permissions
)
public:
ServerPermissionSet(
    ... array<ServerPermission^>^ permissions
)
new : 
        permissions:ServerPermission[] -> ServerPermissionSet
public function ServerPermissionSet(
    ... permissions : ServerPermission[]
)

参数

示例

授予、撤消和拒绝权限

请参阅

参考

ServerPermissionSet 类

ServerPermissionSet 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

权限(数据库引擎)

sys.server_permissions (Transact-SQL)