Ilumnis Authentication

AuthenticationValidator.ValidateRoleId Method (Int32, String)

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

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

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