Class PhoneNumberForm
Represents a phone number the user wants on the account, before it is confirmed.
public class PhoneNumberForm
- Inheritance
-
PhoneNumberForm
- Inherited Members
Remarks
Taken as typed — with or without the country calling code, with spaces, dashes or parentheses.
Normalize it (for instance with E164PhoneNumber.TryNormalize from NuvTools.Security) before
sending a code to it; the number is stored only once the code it received comes back.
Properties
PhoneNumber
Gets or sets the phone number as the user typed it.
[Display(Name = "PhoneNumber", ResourceType = typeof(Fields))]
[Required(ErrorMessageResourceName = "XRequired", ErrorMessageResourceType = typeof(Messages))]
[MaxLength(25, ErrorMessageResourceName = "XMustHaveUpToYCharacters", ErrorMessageResourceType = typeof(Messages))]
public virtual string? PhoneNumber { get; set; }