Database.Deny Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- permission
- DatabasePermissionSet
- 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
- permission
- DatabasePermissionSet
- 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
- permission
- DatabasePermissionSet
- 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
- permission
- DatabasePermissionSet
- granteeNames
- String[]
- cascade
- Boolean