HasLength Method

CuttingEdge.Conditions

Overload List

  NameDescription
HasLength(ConditionValidator<(Of <(String>)>), Int32)
Checks whether the given value is equal in length to length. An exception is thrown otherwise. A null reference is considered to have a length of 0.
HasLength<(Of <(TCollection>)>)(ConditionValidator<(Of <(TCollection>)>), Int32)
Checks whether the given value has the number of elements as specified by numberOfElements. An exception is thrown otherwise. When the value is a null reference, it is considered to have 0 elements.
HasLength(ConditionValidator<(Of <(String>)>), Int32, String)
Checks whether the given value is equal in length to length. An exception is thrown otherwise. A null reference is considered to have a length of 0.
HasLength<(Of <(TCollection>)>)(ConditionValidator<(Of <(TCollection>)>), Int32, String)
Checks whether the given value has the number of elements as specified by numberOfElements. An exception is thrown otherwise. When the value is a null reference, it is considered to have 0 elements.

See Also