Ilumnis Authentication

AuthenticationValidator.ValidateUserName Method (String, String)

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

public static string ValidateUserName(
   string userName,
   string message
);

Parameters

userName
User name to be validated.
message
Message text to add to exception text, if an exception is thrown.

Return Value

Validated user name.

Exceptions

Exception Type Condition
InvalidUserNameException Thrown when invalid userName is passed.

See Also

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