Export (0) Print
Expand All

SearchPropertyList.Revoke Method (ObjectPermissionSet, String, Boolean, Boolean, String)

Revokes the specified set of permissions to the revokeee and the ability to revoke the set of permissions to other users on the SearchPropertyListunder an assumed role.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void Revoke(
	ObjectPermissionSet permission,
	string granteeName,
	bool revokeGrant,
	bool cascade,
	string asRole
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
An ObjectPermissionSet object value that specifies the permissions.
granteeName
Type: String
A String value that specifies the grantee to be granted the specified set of permissions on the SearchPropertyList.
revokeGrant
Type: Boolean
A Boolean property that specifies whether the grantee is given the ability to revoke the specified set of permissions to other users on the SearchPropertyList.
cascade
Type: Boolean
A Boolean property that specifies whether users, from whom the grantees revoked the specified set of permissions, are also denied access to the specified set of permissions on the SearchPropertyList. If true, the grantees and users to whom the grantee granted the specified set of permissions are all revoked the specified set of permissions. If false, only the grantees are revoked of the specified set of permissions.
asRole
Type: String
A String value that specifies the role that the user assumes when revoking the specified set of permissions to other users on the SearchPropertyList. Use this parameter for grantees who are members of more than one role.

Implements

IObjectPermission.Revoke(ObjectPermissionSet, String, Boolean, Boolean, String)
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft