Freigeben über


IObjectPermission.Revoke Method

Definition

Overloads

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

Removes a previously granted or denied permission for the specified granteeNames. When revokeGrant is true, the ability to extend permissions is revoked. Cascade specifies that permissions are removed from granteeNames as well as any other security accounts granted permissions by granteeNames. Use Cascade when revoking a grantable permission.

Revoke(ObjectPermissionSet, String)

Removes a previously granted or denied permission for the specified granteeName.

Revoke(ObjectPermissionSet, String[])

Removes a previously granted or denied permission for the specified granteeNames.

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

Removes a previously granted or denied permission for the specified granteeName. When revokeGrant is true, the ability to extend permissions is revoked. Cascade specifies that permissions are removed from granteeName as well as any other security accounts granted permissions by granteeName. Use Cascade when revoking a grantable permission. Use the AsRole argument to specify the role under which permission to execute the revoke.

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

Removes a previously granted or denied permission for the specified granteeNames. When revokeGrant is true, the ability to extend permissions is revoked. Cascade specifies that permissions are removed from granteeNames as well as any other security accounts granted permissions by granteeNames. Use Cascade when revoking a grantable permission.

public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames, bool revokeGrant, bool cascade);
abstract member Revoke : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string[] * bool * bool -> unit
Public Sub Revoke (permissions As ObjectPermissionSet, granteeNames As String(), revokeGrant As Boolean, cascade As Boolean)

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
revokeGrant
Boolean
cascade
Boolean

Applies to

Revoke(ObjectPermissionSet, String)

Removes a previously granted or denied permission for the specified granteeName.

public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName);
abstract member Revoke : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string -> unit
Public Sub Revoke (permissions As ObjectPermissionSet, granteeName As String)

Parameters

permissions
ObjectPermissionSet
granteeName
String

Applies to

Revoke(ObjectPermissionSet, String[])

Removes a previously granted or denied permission for the specified granteeNames.

public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string[] granteeNames);
abstract member Revoke : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string[] -> unit
Public Sub Revoke (permissions As ObjectPermissionSet, granteeNames As String())

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]

Applies to

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

Removes a previously granted or denied permission for the specified granteeName. When revokeGrant is true, the ability to extend permissions is revoked. Cascade specifies that permissions are removed from granteeName as well as any other security accounts granted permissions by granteeName. Use Cascade when revoking a grantable permission. Use the AsRole argument to specify the role under which permission to execute the revoke.

public void Revoke (Microsoft.SqlServer.Management.Smo.ObjectPermissionSet permissions, string granteeName, bool revokeGrant, bool cascade, string asRole);
abstract member Revoke : Microsoft.SqlServer.Management.Smo.ObjectPermissionSet * string * bool * bool * string -> unit
Public Sub Revoke (permissions As ObjectPermissionSet, granteeName As String, revokeGrant As Boolean, cascade As Boolean, asRole As String)

Parameters

permissions
ObjectPermissionSet
granteeName
String
revokeGrant
Boolean
cascade
Boolean
asRole
String

Applies to