Ilumnis Authentication

AuthenticationValidator.ValidateUserId Method (Int32, String)

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

public static int ValidateUserId(
   int userId,
   string message
);

Parameters

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

Return Value

Validated database user identifier.

Exceptions

Exception Type Condition
InvalidUserIdentifierException Thrown when invalid userId is passed.

See Also

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