Share via


Database.Revoke Method

Definition

Overloads

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

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

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

Parameters

granteeNames
String[]
revokeGrant
Boolean
cascade
Boolean
asRole
String

Applies to

Revoke(DatabasePermissionSet, String)

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

Parameters

granteeName
String

Applies to

Revoke(DatabasePermissionSet, String[])

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

Parameters

granteeNames
String[]

Applies to

Revoke(DatabasePermissionSet, String, Boolean, Boolean)

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

Parameters

granteeName
String
revokeGrant
Boolean
cascade
Boolean

Applies to

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

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

Parameters

granteeNames
String[]
revokeGrant
Boolean
cascade
Boolean

Applies to

Revoke(DatabasePermissionSet, String, Boolean, Boolean, String)

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

Parameters

granteeName
String
revokeGrant
Boolean
cascade
Boolean
asRole
String

Applies to