DevForce Help Reference
RangeVerifier<T> Constructor(Type,String,Boolean,Nullable<T>,Boolean,Nullable<T>,Boolean)


Type of the object being verified
The property on the specified type to be verified
Whether the property name is required or may be left null
Minimum acceptable value for the property (may be null)
Whether the min value is included as part of the range
Maximum acceptable value for the property (may be null)
Whether the max value is included as part of the range
Initializes a new instance of the RangeVerifier class.
Syntax
'Declaration
 
Public Function New( _
   ByVal applicableType As Type, _
   ByVal propertyName As String, _
   ByVal isRequired As Boolean, _
   ByVal minValue As Nullable(Of T), _
   ByVal includeMinEndpoint As Boolean, _
   ByVal maxValue As Nullable(Of T), _
   ByVal includeMaxEndpoint As Boolean _
)
'Usage
 
Dim applicableType As Type
Dim propertyName As String
Dim isRequired As Boolean
Dim minValue As Nullable(Of T)
Dim includeMinEndpoint As Boolean
Dim maxValue As Nullable(Of T)
Dim includeMaxEndpoint As Boolean
 
Dim instance As New RangeVerifier(Of T)(applicableType, propertyName, isRequired, minValue, includeMinEndpoint, maxValue, includeMaxEndpoint)

Parameters

applicableType
Type of the object being verified
propertyName
The property on the specified type to be verified
isRequired
Whether the property name is required or may be left null
minValue
Minimum acceptable value for the property (may be null)
includeMinEndpoint
Whether the min value is included as part of the range
maxValue
Maximum acceptable value for the property (may be null)
includeMaxEndpoint
Whether the max value is included as part of the range
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RangeVerifier<T> Class
RangeVerifier<T> Members
Overload List

Send Feedback