Export (0) Print
Expand All

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

Revokes the specified set of permissions to the grantees and the ability to revoke the set of permissions to other users on the Server Role under an assumed role.

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,
	string asRole
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.ObjectPermissionSet
An ObjectPermissionSet object that specifies the set of permissions.
granteeNames
Type: String[]
A String array that specifies a list of grantees to be granted the specified set of permissions.
revokeGrant
Type: Boolean
A Boolean property that specifies whether the grantees are given the ability to revoke the specified set of permissions from other users on the Server Role. If True, the grantees are given the ability to revoke the specified set of permissions from other users on the Server Role. If False, only the grantees are revoked the specified set of permissions.
cascade
Type: Boolean
A Boolean property that specifies whether users to whom the grantees have granted the specified set of permissions are also revoked the set of permissions. If true, the grantees and users to whom the grantees granted the specified set of permissions are all revoked the specified set of permissions on the Server Role. If false, only the grantees are revoked the specified set of permissions.
asRole
Type: String
A String value that specifies the role that the user assumes when granting the specified set of permissions to other users on the Server Role. Use this parameter for grantees who are members of more than one role.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft