Converts the username of a user to a Visual Guard unique repository id for the specified authentication mode
A Visual Guard unique repository id
The Visual Guard unique repository id is used by Visual Guard to identify uniquely a user account in a Visual Guard repository.
Exception Type | Condition |
---|---|
ArgumentNullException | username is null. |
ArgumentException |
username is empty. - or - mode is equal to VisualGuard and is longer than 64 characters or contains invalid chars ('\', '/', '?', '*', '%', ';', ''', '"', ':', '|', '[', ']', '+', '=', ',').- or - mode is equal to Windows and username cannot be converted to a valid SID.- or - mode is not equal to Windows or VisualGuard or Database or is a combination of several values. |
VGMembership Class | Novalys.VisualGuard.Security.Membership Namespace | RepositoryId