Database.Deny Method

Definition

Overloads

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

Deny(DatabasePermissionSet, String)

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

Parameters

granteeName
String

Deny(DatabasePermissionSet, String[])

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

Parameters

granteeNames
String[]

Deny(DatabasePermissionSet, String, Boolean)

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

Parameters

granteeName
String
cascade
Boolean

Deny(DatabasePermissionSet, String[], Boolean)

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

Parameters

granteeNames
String[]
cascade
Boolean

Applies to