CompareValidator.Operator Propriedade
Definição
Obtém ou define a operação de comparação usada na validação.Gets or sets the comparison operation used in validation. O valor padrão é Equal.The default value is Equal. Esta API está obsoleta.This API is obsolete. Para saber mais sobre como desenvolver aplicativos móveis ASP.NET, veja Mobile Apps & Sites with ASP.NET (Aplicativos móveis e sites com ASP.NET).For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
public:
property System::Web::UI::WebControls::ValidationCompareOperator Operator { System::Web::UI::WebControls::ValidationCompareOperator get(); void set(System::Web::UI::WebControls::ValidationCompareOperator value); };
[System.ComponentModel.Bindable(false)]
public System.Web.UI.WebControls.ValidationCompareOperator Operator { get; set; }
[<System.ComponentModel.Bindable(false)>]
member this.Operator : System.Web.UI.WebControls.ValidationCompareOperator with get, set
Public Property Operator As ValidationCompareOperator
Valor da propriedade
A operação de comparação usada na validação.The comparison operation used in validation.
- Atributos
Comentários
A ControlToValidate propriedade deve estar no lado esquerdo do operador de comparação e a ControlToCompare Propriedade à direita, para que ocorra uma avaliação válida.The ControlToValidate property must be on the left side of the comparison operator, and the ControlToCompare property on the right side, for valid evaluation to occur.
A tabela a seguir mostra as operações disponíveis.The following table shows the available operations.
DataTypeCheck Verifica se os tipos de dados para os dois controles são válidos.DataTypeCheck Checks whether the data types for the two controls are valid.
Equal Verifica se os dois controles são iguais.Equal Checks whether the two controls are equal to each other.
GreaterThan Verifica se um controle é maior que o outro controle.GreaterThan Checks whether one control is greater than the other control.
GreaterThanEqual Verifica se um controle é maior ou igual ao outro controle.GreaterThanEqual Checks whether one control is greater than or equal to the other control.
LessThan Verifica se um controle é menor que o outro controle.LessThan Checks whether one control is less than the other control.
LessThanEqual Verifica se um controle é menor ou igual ao outro controle.LessThanEqual Checks whether one control is less than or equal to the other control.
NotEqual Verifica se os controles não são iguais.NotEqual Checks whether the controls are not equal to each other.