Partager via


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

Applies to

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[]

Applies to

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

Applies to

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