IObjectPermission.Grant IObjectPermission.Grant IObjectPermission.Grant Method

Definition

Overloads

Grant(ObjectPermissionSet, String[], Boolean, String) Grant(ObjectPermissionSet, String[], Boolean, String) 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) Grant(ObjectPermissionSet, String, Boolean, String) 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) Grant(ObjectPermissionSet, String[], Boolean) 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) Grant(ObjectPermissionSet, String) Grant(ObjectPermissionSet, String)

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

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

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

Grant(ObjectPermissionSet, String, Boolean) Grant(ObjectPermissionSet, String, Boolean) 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) Grant(ObjectPermissionSet, String[], Boolean, String) 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

granteeNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String, Boolean, String) Grant(ObjectPermissionSet, String, Boolean, String) 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

granteeName
String String String
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String[], Boolean) Grant(ObjectPermissionSet, String[], Boolean) 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

granteeNames
String[]
grantGrant
Boolean Boolean Boolean

Grant(ObjectPermissionSet, String) Grant(ObjectPermissionSet, String) 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

granteeName
String String String

Grant(ObjectPermissionSet, String[]) Grant(ObjectPermissionSet, String[]) 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

granteeNames
String[]

Grant(ObjectPermissionSet, String, Boolean) Grant(ObjectPermissionSet, String, Boolean) 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

granteeName
String String String
grantGrant
Boolean Boolean Boolean

Applies to