RangeType Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the type of numeric comparison to use in an instance of the RangeExpression class.
public enum class RangeType
public enum RangeType
type RangeType =
Public Enum RangeType
- Inheritance
Fields
Exclusive | 1 | Specifies a greater-than-or-less-than comparison. Corresponds to the |
Inclusive | 2 | Specifies an equal-to-or-greater-than comparison or an equal-to-or-less-than comparison. Corresponds to the |
None | 0 | Specifies that the search does not have a boundary. |
Examples
The following example shows how to search the ListPrice column in the Products table of the AdventureWorks database for products that have a list price in the range specified in the FromTextBox
and ToTextBox
text boxes. The filter includes the specified minimum value in search results by using the Inclusive property but excludes the specified maximum value. 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>
Remarks
The RangeExpression enumeration is used to indicate whether a value is between two specified values. The enumeration is used in the MinType or MaxType properties of the RangeExpression class.
You specify a minimum and a maximum value. You can include or exclude values that you specified by using the RangeType class.
The following table describes the enumeration values.
Enumeration | Description |
---|---|
None | Specifies that the search does not have a boundary. |
Inclusive | Performs a greater-than-or-less-than comparison. Corresponds to the >= or <= operation. |
Exclusive | Performs a greater-than-or-less-than comparison. Corresponds to the > or < operation. |
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기