IObjectPermission.Revoke IObjectPermission.Revoke IObjectPermission.Revoke Method

Definition

Revokes previously granted permissions from a grantee or grantees on the SMO object.

Overloads

Revoke(ObjectPermissionSet, String[], Boolean, Boolean) Revoke(ObjectPermissionSet, String[], Boolean, Boolean) Revoke(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.

Revoke(ObjectPermissionSet, String) Revoke(ObjectPermissionSet, String) Revoke(ObjectPermissionSet, String)

Revokes previously granted permissions from a grantee on the SMO object.

Revoke(ObjectPermissionSet, String[]) Revoke(ObjectPermissionSet, String[]) Revoke(ObjectPermissionSet, String[])

Revokes previously granted permissions from a list of grantees on the SMO object.

Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revoke(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.

Revoke(ObjectPermissionSet, String[], Boolean, Boolean) Revoke(ObjectPermissionSet, String[], Boolean, Boolean) Revoke(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:
 void Revoke(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, cli::array <System::String ^> ^ granteeNames, bool revokeGrant, bool cascade);
public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames, bool revokeGrant, bool cascade);
Public Sub Revoke (permissions As ObjectPermissionSet, granteeNames As String(), revokeGrant As Boolean, cascade As Boolean)
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object that specifies the permission.

granteeNames
String[]

A String array that specifies a list of grantees to be revoked access to the permission.

revokeGrant
Boolean Boolean Boolean

A Boolean property that specifies whether the grantee is given the ability to revoke access from the object for other users.

If True, the grantee is given the ability to revoke other users' access from the SMO object.

If False, the grantee is not given the ability to revoke other users' access from the SMO object.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users that the grantee has granted access to the permission are also revoked access from the permission.

If True, the grantee and users to which the grantee granted access to the permission are all revoked access from the permission.

If False, only the grantee is revoked access from the permission.

Revoke(ObjectPermissionSet, String) Revoke(ObjectPermissionSet, String) Revoke(ObjectPermissionSet, String)

Revokes previously granted permissions from a grantee on the SMO object.

public:
 void Revoke(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, System::String ^ granteeName);
public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName);
Public Sub Revoke (permissions As ObjectPermissionSet, granteeName As String)
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object that specifies the permission.

granteeName
String String String

A String value that specifies a grantee to be revoked access to the permission.

Revoke(ObjectPermissionSet, String[]) Revoke(ObjectPermissionSet, String[]) Revoke(ObjectPermissionSet, String[])

Revokes previously granted permissions from a list of grantees on the SMO object.

public:
 void Revoke(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, cli::array <System::String ^> ^ granteeNames);
public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames);
Public Sub Revoke (permissions As ObjectPermissionSet, granteeNames As String())
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object that specifies the permission.

granteeNames
String[]

A String array that specifies a list of grantees to be revoked access to the permission.

Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revoke(ObjectPermissionSet, String, Boolean, Boolean, String) Revoke(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.

public:
 void Revoke(Microsoft::SqlServer::Management::Smo::ObjectPermissionSet ^ permissions, System::String ^ granteeName, bool revokeGrant, bool cascade, System::String ^ asRole);
public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, bool revokeGrant, bool cascade, string asRole);
Public Sub Revoke (permissions As ObjectPermissionSet, granteeName As String, revokeGrant As Boolean, cascade As Boolean, asRole As String)
Parameters
permissions
ObjectPermissionSet ObjectPermissionSet ObjectPermissionSet

An ObjectPermissionSet object that specifies the permission.

granteeName
String String String

A String value that specifies a grantee to be revoked access to the permission.

revokeGrant
Boolean Boolean Boolean

A Boolean property that specifies whether the grantee is given the ability to revoke access from the object for other users.

If True, the grantee is given the ability to revoke other users' access from the SMO object.

If False, the grantee is not given the ability to revoke other users' access from the SMO object.

cascade
Boolean Boolean Boolean

A Boolean property that specifies whether users that the grantee has granted access to the permission are also revoked access from the permission.

If True, the grantee and users to which the grantee granted access to the permission are all revoked access from the permission.

If False, only the grantee is revoked access from the permission.

asRole
String String String

A String value that specifies the role that the user assumes when revoking access from the SMO object for other users. Use this parameter for grantees who are members of more than one role.

Applies to