Ilumnis Authentication

IAuthenticationValidator.ValidateRoleName Method 

Validates roleName and adds custom message to exception, if one is thrown.

string ValidateRoleName(
   string roleName,
   string message
);

Parameters

roleName
Role name to be validated.
message
Message text to add to exception text, if an exception is thrown.

Return Value

Validated role name.

Exceptions

Exception Type Condition
InvalidRoleNameException Thrown when invalid roleName is passed.

See Also

IAuthenticationValidator Interface | IExSys.Authentication.Validation Namespace