CreateUserWizardStep.AllowReturn 属性
定义
获取或设置一个值,该值指示是否允许用户从 CreateUserWizard 控件中的后一个步骤返回到当前步骤。Gets or sets a value indicating whether the user is allowed to return to the current step from a subsequent step in a CreateUserWizard control.
public:
virtual property bool AllowReturn { bool get(); void set(bool value); };
[System.ComponentModel.Browsable(false)]
public override bool AllowReturn { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.AllowReturn : bool with get, set
Public Overrides Property AllowReturn As Boolean
属性值
如果允许用户返回 CreateUserWizardStep 步骤,则为 true;否则为 false。true if the user is allowed to return to the CreateUserWizardStep step; otherwise, false. 默认值为 false。The default is false.
- 属性
例外
已尝试设置属性。An attempt was made to set the property.
注解
将 AllowReturn 属性设置为, false 以防止用户返回到 CreateUserWizardStep 步骤,并且无意中尝试创建具有相同凭据的另一个用户帐户。The AllowReturn property is set to false to keep users from returning to the CreateUserWizardStep step and accidentally trying to create another user account with the same credentials. 如果重写 AllowReturn 属性并将其设置为 true ,则应在应用程序中包含逻辑,以删除最初在用户返回到此步骤之前创建的用户帐户,或者允许用户编辑其最初输入的信息。If you override the AllowReturn property and set it to true, you should include logic in your application to remove the user account that was originally created before the user returned to this step, or to allow the user to edit information he or she originally entered.