RangeExpression.MaxType Propriedade

Definição

Obtém ou define o valor máximo do intervalo.Gets or sets the maximum value of the range.

public:
 property System::Web::UI::WebControls::Expressions::RangeType MaxType { System::Web::UI::WebControls::Expressions::RangeType get(); void set(System::Web::UI::WebControls::Expressions::RangeType value); };
public System.Web.UI.WebControls.Expressions.RangeType MaxType { get; set; }
member this.MaxType : System.Web.UI.WebControls.Expressions.RangeType with get, set
Public Property MaxType As RangeType

Valor da propriedade

RangeType

O tipo de comparação a ser usado para o valor máximo.The type of comparison to use for the maximum value. O padrão é None, que indica que a comparação máxima não é executada.The default is None, which indicates that the maximum comparison is not performed.

Exemplos

O exemplo a seguir mostra como incluir o valor mínimo especificado no intervalo e como excluir o valor máximo.The following example shows how to include the minimum value that is specified in the range and how to exclude the maximum value. Os valores máximo e mínimo são inseridos em caixas de texto.The maximum and minimum values are entered into text boxes. Este exemplo de código é parte de um exemplo maior fornecido em passo a passos: filtrar dados em uma página da Web usando a sintaxe declarativa.This code example is part of a larger example provided in Walkthrough: Filtering Data in a Web Page Using Declarative Syntax.

<asp:RangeExpression DataField="ListPrice"    
    MinType="Inclusive" MaxType="Exclusive">  
  <asp:ControlParameter ControlID="FromTextBox" />  
  <asp:ControlParameter ControlID="ToTextBox" />  
</asp:RangeExpression>  

Comentários

Os valores possíveis para essa propriedade são Inclusive , Exclusive e None .Possible values for this property are Inclusive, Exclusive, and None.

Quando o MaxType é definido como Inclusive , o valor máximo do intervalo é incluído nos resultados da pesquisa.When the MaxType is set to Inclusive, the maximum value of the range is included in the search results. Isso é equivalente a executar uma operação >=.This is equivalent to performing a >= operation. Se você definir a propriedade como Exclusive campo, será equivalente a especificar uma operação de > ou de <.If you set the property to Exclusive field, it is equivalent to specifying a > or < operation. Se você definir a propriedade como None , nenhum limite será imposto no intervalo.If you set the property to None, no limit is imposed on the range.

Aplica-se a