Grant privileges to an user defined role.
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public void GrantPrivileges( AdminPolicy policy, string roleName, IList<Privilege> privileges )
Parameters
- policy
- Type: Aerospike.ClientAdminPolicy
admin configuration parameters, pass in null for defaults - roleName
- Type: SystemString
role name - privileges
- Type: System.Collections.GenericIListPrivilege
privileges assigned to the role.
Implements
IAerospikeClientGrantPrivileges(AdminPolicy, String, IListPrivilege)Exceptions
Exception | Condition |
---|---|
AerospikeException | if command fails |
See Also