Ilumnis Authentication

IAuthenticationValidator.ValidateRoleId Method 

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

int ValidateRoleId(
   int roleId,
   string message
);

Parameters

roleId
Database role identifier to be validated.
message
Message text to add to exception text, if an exception is thrown.

Return Value

Validated RoleId.

Exceptions

Exception Type Condition
InvalidRoleIdentifierException Thrown when invalid roleId is passed.

See Also

IAuthenticationValidator Interface | IExSys.Authentication.Validation Namespace