Export (0) Print
Expand All

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

Revokes a previously granted set of permissions from a grantee from the SearchPropertyList and any other users to whom the grantee has granted the specified set of permissions

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

public void Revoke(
	ObjectPermissionSet permission,
	string[] granteeNames,
	bool revokeGrant,
	bool cascade
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
An ObjectPermissionSet object value that specifies the permissions.
granteeNames
Type: String[]
A String array that specifies the grantees to be revoked of 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 granted 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.

Implements

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

Community Additions

ADD
Show:
© 2014 Microsoft