|
UserRoleCacheSaveUserRole Method
|
Serializes the
roles for the given
userName into the
UserRoleCache.
Namespace: GSF.SecurityAssembly: GSF.Security (in GSF.Security.dll) Version: 2.4.218-beta
Syntax Public Sub SaveUserRole (
userName As String,
roles As String()
)
public:
void SaveUserRole(
String^ userName,
array<String^>^ roles
)
member SaveUserRole :
userName : string *
roles : string[] -> unit
function SaveUserRole(userName, roles);
View SourceParameters
- userName String
- User name associated with access role to retrieve.
- roles String
- Access roles to update or populate.
Remarks
This will add an entry into the user roles cache for userName if it doesn't exist;
otherwise existing entry will be updated.
Updates are automatically queued up for serialization so user does not need to call Save.
See Also