共用方式為


IObjectPermission.Deny Method

Definition

Overloads

Deny(ObjectPermissionSet, String)

The Deny method negates granted user permission for one or more users or roles.

Deny(ObjectPermissionSet, String[])

The Deny method negates granted user permission for one or more users or roles.

Deny(ObjectPermissionSet, String, Boolean)

The Deny method negates granted user permission for one or more users or roles. Cascade specifies that permissions are denied from granteeName as well as any other security accounts granted permissions by granteeName. Use Cascade when denying a grantable permission.

Deny(ObjectPermissionSet, String[], Boolean)

The Deny method negates granted user permission for one or more users or roles. Cascade specifies that permissions are denied from granteeNames as well as any other security accounts granted permissions by granteeNames. Use Cascade when denying a grantable permission.

Deny(ObjectPermissionSet, String)

The Deny method negates granted user permission for one or more users or roles.

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

Parameters

permissions
ObjectPermissionSet
granteeName
String

Applies to

Deny(ObjectPermissionSet, String[])

The Deny method negates granted user permission for one or more users or roles.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]

Applies to

Deny(ObjectPermissionSet, String, Boolean)

The Deny method negates granted user permission for one or more users or roles. Cascade specifies that permissions are denied from granteeName as well as any other security accounts granted permissions by granteeName. Use Cascade when denying a grantable permission.

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

Parameters

permissions
ObjectPermissionSet
granteeName
String
cascade
Boolean

Applies to

Deny(ObjectPermissionSet, String[], Boolean)

The Deny method negates granted user permission for one or more users or roles. Cascade specifies that permissions are denied from granteeNames as well as any other security accounts granted permissions by granteeNames. Use Cascade when denying a grantable permission.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
cascade
Boolean

Applies to