通过


RangeExpression.MinType 属性

定义

获取或设置范围的最小值。

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

属性值

要用于最小值的比较类型。 默认值 None为,指示不执行最小比较。

示例

以下示例演示如何包含区域中指定的最小值以及如何排除最大值。 最大值和最小值将输入到文本框中。 此代码示例是 演练:使用声明性语法在网页中筛选数据的大型示例的一部分。

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

注解

此属性 Inclusive的可能值为, Exclusive以及 None

MinType如果或MaxType属性设置为Inclusive,则搜索结果中包含范围的最小值和最大值。 这相当于执行 >= 或 <= 操作。 该 Exclusive 字段等效于 > 或 < 操作,对 None 范围没有限制。

适用于