Partager via


Server.Deny Method

Definition

Overloads

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

Deny(ServerPermissionSet, String, Boolean)

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

Parameters

permission
ServerPermissionSet
granteeName
String
cascade
Boolean

Applies to

Deny(ServerPermissionSet, String[], Boolean)

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

Parameters

permission
ServerPermissionSet
granteeNames
String[]
cascade
Boolean

Applies to

Deny(ServerPermissionSet, String)

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

Parameters

permission
ServerPermissionSet
granteeName
String

Applies to

Deny(ServerPermissionSet, String[])

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

Parameters

permission
ServerPermissionSet
granteeNames
String[]

Applies to