CreateUserWizard.QuestionAndAnswerRequired Property

Definition

Gets a value indicating whether the user is required to enter a password confirmation question and answer.

C#
protected internal bool QuestionAndAnswerRequired { get; }

Property Value

true if the user is required to enter a password confirmation question and answer; otherwise, false. The default value is true.

Remarks

The QuestionAndAnswerRequired property returns a value from the membership provider set in the MembershipProvider property specifying whether the user is required to enter a password confirmation question and answer.

If a Membership provider requires a question and answer, the Question and Answer controls are required and the CreateUserWizard throws an exception if they are not found or of the wrong type. If they are not required by the Membership provider, no exception is thrown if they are not found, and if they are of the wrong type they are ignored.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also