Compartir a través de


IObjectPermission.Grant Method

Definition

Overloads

Grant(ObjectPermissionSet, String[], Boolean, String)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the asRole argument to specify the role under which permission to execute the grant.

Grant(ObjectPermissionSet, String, Boolean, String)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the asRole argument to specify the role under which permission to execute the grant.

Grant(ObjectPermissionSet, String[], Boolean)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

Grant(ObjectPermissionSet, String)

The Grant method assigns permissions to one or more users or roles.

Grant(ObjectPermissionSet, String[])

The Grant method assigns permissions to one or more users or roles.

Grant(ObjectPermissionSet, String, Boolean)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

Grant(ObjectPermissionSet, String[], Boolean, String)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the asRole argument to specify the role under which permission to execute the grant.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
grantGrant
Boolean
asRole
String

Applies to

Grant(ObjectPermissionSet, String, Boolean, String)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object. Use the asRole argument to specify the role under which permission to execute the grant.

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

Parameters

permissions
ObjectPermissionSet
granteeName
String
grantGrant
Boolean
asRole
String

Applies to

Grant(ObjectPermissionSet, String[], Boolean)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]
grantGrant
Boolean

Applies to

Grant(ObjectPermissionSet, String)

The Grant method assigns permissions to one or more users or roles.

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

Parameters

permissions
ObjectPermissionSet
granteeName
String

Applies to

Grant(ObjectPermissionSet, String[])

The Grant method assigns permissions to one or more users or roles.

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

Parameters

permissions
ObjectPermissionSet
granteeNames
String[]

Applies to

Grant(ObjectPermissionSet, String, Boolean)

The Grant method assigns permissions to one or more users or roles. When grantGrant is true, the grantee(s) specified are granted the ability to execute the GRANT statement referencing the object.

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

Parameters

permissions
ObjectPermissionSet
granteeName
String
grantGrant
Boolean

Applies to