Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IObjectPermission Interface

The IObjectPermission class represents the interface used to set object permissions.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
'Declaration
Public Interface IObjectPermission
'Usage
Dim instance As IObjectPermission
  NameDescription
Public methodDeny(ObjectPermissionSet, String)Denies access to the specified permission for the specified grantee on the SMO object.
Public methodDeny(ObjectPermissionSet, String())Denies access to the specified permission for the specified grantees on the SMO object.
Public methodDeny(ObjectPermissionSet, String, Boolean)Denies access to the specified permission for the specified grantee and other users that the grantee granted access on the SMO object.
Public methodDeny(ObjectPermissionSet, String(), Boolean)Denies access to the specified permission for the specified grantees on the SMO object.
Public methodEnumObjectPermissionsEnumerates a list of object permissions for the SMO object.
Public methodEnumObjectPermissions(String)Enumerates a list of object permissions for a specified grantee on the SMO object.
Public methodEnumObjectPermissions(ObjectPermissionSet)Enumerates a list of object permissions for a specified permission on the SMO object.
Public methodEnumObjectPermissions(String, ObjectPermissionSet)Enumerates a list of object permissions for a specified grantee and a specified permission on the SMO object.
Public methodGrant(ObjectPermissionSet, String)Grants access to the specified permission for the specified grantee on the SMO object.
Public methodGrant(ObjectPermissionSet, String())Grants access to the specified permission for the specified grantees on the SMO object.
Public methodGrant(ObjectPermissionSet, String, Boolean)Grants access to the specified permission and the ability to grant access to other users for the specified grantee on the SMO object.
Public methodGrant(ObjectPermissionSet, String(), Boolean)Grants access to the specified permission and the ability to grant access to other users for the specified grantees on the SMO object.
Public methodGrant(ObjectPermissionSet, String, Boolean, String)Grants access to the specified permission and the ability to grant access to other users for the specified grantee on the SMO object.
Public methodGrant(ObjectPermissionSet, String(), Boolean, String)Grants access to the specified permission and the ability to grant access to other users for the specified grantee on the SMO object under an assumed role.
Public methodRevoke(ObjectPermissionSet, String)Revokes previously granted permissions from a grantee on the SMO object.
Public methodRevoke(ObjectPermissionSet, String())Revokes previously granted permissions from a list of grantees on the SMO object.
Public methodRevoke(ObjectPermissionSet, String(), Boolean, Boolean)Revokes previously granted permissions from a grantees on the SMO object and any other users to whom the grantees have granted access. The grantees are also given the ability to revoke other users' access.
Public methodRevoke(ObjectPermissionSet, String, Boolean, Boolean, String)Revokes previously granted permissions from a grantee on the SMO object and any other users to whom the grantee has granted access. The grantee is also given the ability to revoke other users' access under an assumed role.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.