共用方式為


SetPasswordModel.InputModel.NewPassword 屬性

定義

此 API 支援 ASP.NET Core身分識別預設 UI 基礎結構,並不適合直接從您的程式碼使用。 此 API 可能會在未來的版本中變更或移除。

[System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.Password)]
[System.ComponentModel.DataAnnotations.Display(Name="New password")]
[System.ComponentModel.DataAnnotations.Required]
[System.ComponentModel.DataAnnotations.StringLength(100, ErrorMessage="The {0} must be at least {2} and at max {1} characters long.", MinimumLength=6)]
public string NewPassword { get; set; }
[<System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.Password)>]
[<System.ComponentModel.DataAnnotations.Display(Name="New password")>]
[<System.ComponentModel.DataAnnotations.Required>]
[<System.ComponentModel.DataAnnotations.StringLength(100, ErrorMessage="The {0} must be at least {2} and at max {1} characters long.", MinimumLength=6)>]
member this.NewPassword : string with get, set
Public Property NewPassword As String

屬性值

屬性

適用於