共用方式為


CreateUserWizard.PasswordHintText 屬性

定義

取得或設定描述密碼需求的文字。

public:
 virtual property System::String ^ PasswordHintText { System::String ^ get(); void set(System::String ^ value); };
public virtual string PasswordHintText { get; set; }
member this.PasswordHintText : string with get, set
Public Overridable Property PasswordHintText As String

屬性值

String

描述密碼需求的文字。 預設值為空字串 ("")。

備註

您可以使用 PasswordHintText 屬性,為使用者提供如何建立密碼的指導方針和需求。 例如,您可以將 屬性設定 PasswordHintText 為 「您的密碼長度必須至少為六個字元」。 然後 PasswordRegularExpression ,您可以使用 屬性來驗證使用者輸入的密碼是否符合指導方針。

設定時,這個屬性的值可以使用設計工具自動儲存到資源檔。 如需詳細資訊,請參閱 LocalizableAttribute全球化和當地語系化

適用於

另請參閱