Ilumnis Authentication

AuthenticationValidator.ValidateRoleName Method (String, String)

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

public static 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

AuthenticationValidator Class | IExSys.Authentication.Validation Namespace | AuthenticationValidator.ValidateRoleName Overload List