VGMembershipConvertUsernameToRepositoryId Method |
Namespace: Novalys.VisualGuard.Security.Membership
public static string ConvertUsernameToRepositoryId( string username, VGAuthenticationMode mode )
Exception | 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. |