Ilumnis Authentication

StandardValidator.ValidateRoleId Method 

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

public int ValidateRoleId(
   int roleId,
   string message
);

Parameters

roleId
RoleId to be validated.
message
Message text to add to exception text, if an exception is thrown.

Return Value

Validated RoleId.

Implements

IAuthenticationValidator.ValidateRoleId

Exceptions

Exception Type Condition
InvalidRoleIdentifierException Thrown when invalid roleId is passed.

See Also

StandardValidator Class | IExSys.Authentication.Validation Namespace