PasswordRecovery.Question Propriedade
Definição
Obtém a pergunta de confirmação de recuperação de senha estabelecida pelo usuário no site.Gets the password recovery confirmation question established by the user on the Web site.
public:
property System::String ^ Question { System::String ^ get(); };
[System.ComponentModel.Browsable(false)]
[System.Web.UI.Themeable(false)]
public string Question { get; }
[<System.ComponentModel.Browsable(false)>]
[<System.Web.UI.Themeable(false)>]
member this.Question : string
Public ReadOnly Property Question As String
Valor da propriedade
A pergunta de confirmação de recuperação de senha.The password recovery confirmation question. O valor padrão é Empty.The default value is Empty.
- Atributos
Comentários
A Question propriedade contém a pergunta de confirmação de recuperação de senha que o usuário estabeleceu anteriormente no site.The Question property contains the password recovery confirmation question that the user previously established on the Web site. A Question propriedade é exibida somente na exibição de pergunta.The Question property is displayed only in the Question view. Se o provedor de associação especificado na MembershipProvider propriedade não oferecer suporte a perguntas e respostas de senha, a exibição de pergunta não será exibida e a Question propriedade não será usada.If the membership provider specified in the MembershipProvider property does not support password question and answer, the Question view is not displayed and the Question property is not used.
O provedor de associação retornará a pergunta somente depois que o usuário inserir um nome de usuário válido.The membership provider returns the question only after the user enters a valid user name. Até que o usuário insira um nome de usuário válido, a Question propriedade é Empty .Until the user enters a valid user name, the Question property is Empty.
As configurações de estilo na TextBoxStyle propriedade definem a aparência da Question propriedade.The style settings in the TextBoxStyle property define the appearance of the Question property.
Quando você usa a QuestionTemplate propriedade para definir a aparência da exibição de pergunta, a Question propriedade é exibida em um Literal controle opcional com a ID propriedade definida como "pergunta".When you use the QuestionTemplate property to define the appearance of the Question view, the Question property is displayed in an optional Literal control with the ID property set to "Question".
Esta propriedade não pode ser definida por temas ou temas de folha de estilo.This property cannot be set by themes or style sheet themes. Para obter mais informações, consulte ThemeableAttribute e temas e capas do ASP.net.For more information, see ThemeableAttribute and ASP.NET Themes and Skins.