共用方式為


ChangePasswordModel.InputModel.ConfirmPassword 屬性

定義

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

[System.ComponentModel.DataAnnotations.Compare("NewPassword", ErrorMessage="The new password and confirmation password do not match.")]
[System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.Password)]
[System.ComponentModel.DataAnnotations.Display(Name="Confirm new password")]
public string ConfirmPassword { get; set; }
[System.ComponentModel.DataAnnotations.Compare("NewPassword", ErrorMessage="The new password and confirmation password do not match.")]
[System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.Password)]
[System.ComponentModel.DataAnnotations.Display(Name="Confirm new password")]
public string? ConfirmPassword { get; set; }
[<System.ComponentModel.DataAnnotations.Compare("NewPassword", ErrorMessage="The new password and confirmation password do not match.")>]
[<System.ComponentModel.DataAnnotations.DataType(System.ComponentModel.DataAnnotations.DataType.Password)>]
[<System.ComponentModel.DataAnnotations.Display(Name="Confirm new password")>]
member this.ConfirmPassword : string with get, set
Public Property ConfirmPassword As String

屬性值

屬性

適用於