ObjectPermissionSet 构造函数 (array<ObjectPermission )

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

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

语法

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

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

参数

示例

授予、撤消和拒绝权限

请参阅

参考

ObjectPermissionSet 类

ObjectPermissionSet 重载

Microsoft.SqlServer.Management.Smo 命名空间