UserOptions Class

Options for user validation.

Namespace
Microsoft.AspNetCore.Identity
Assemblies
  • Microsoft.AspNetCore.Identity

Syntax

public class UserOptions
class Microsoft.AspNetCore.Identity.UserOptions

Properties

Microsoft.AspNetCore.Identity.UserOptions.AllowedUserNameCharacters

Gets or sets the list of allowed characters in the username used to validate user names.

Return type:System.String
Returns:The list of allowed characters in the username used to validate user names.
public string AllowedUserNameCharacters { get; set; }
Microsoft.AspNetCore.Identity.UserOptions.RequireUniqueEmail

Gets or sets a flag indicating whether the application requires unique emails for its users.

Return type:System.Boolean
Returns:True if the application requires each user to have their own, unique email, otherwise false.
public bool RequireUniqueEmail { get; set; }