ObjectPermissionSet 构造函数 (ObjectPermissionSet)

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 ( _
    oObjectPermissionSet As ObjectPermissionSet _
)
用法
Dim oObjectPermissionSet As ObjectPermissionSet 

Dim instance As New ObjectPermissionSet(oObjectPermissionSet)
public ObjectPermissionSet(
    ObjectPermissionSet oObjectPermissionSet
)
public:
ObjectPermissionSet(
    ObjectPermissionSet^ oObjectPermissionSet
)
new : 
        oObjectPermissionSet:ObjectPermissionSet -> ObjectPermissionSet
public function ObjectPermissionSet(
    oObjectPermissionSet : ObjectPermissionSet
)

参数

注释

The ObjectPermissionSet object is used to grant, deny, revoke, and enumerate database permissions (also known as statement permissions).

示例

授予、撤消和拒绝权限

请参阅

参考

ObjectPermissionSet 类

ObjectPermissionSet 重载

Microsoft.SqlServer.Management.Smo 命名空间