Ilumnis Authentication

AuthenticationValidator.ValidateFirstName Method (String, String)

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

public static string ValidateFirstName(
   string firstName,
   string message
);

Parameters

firstName
First name to be validated.
message
Message text to add to exception text, if an exception is thrown.

Return Value

Validated first name.

Exceptions

Exception Type Condition
InvalidFirstNameException Thrown when invalid firstName is passed.

See Also

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