YearMonthDuration.LessThanOrEqual OperatorYearMonthDuration.LessThanOrEqual OperatorYearMonthDuration::LessThanOrEqual Operator
Indicates whether a specified YearMonthDurationYearMonthDurationYearMonthDuration is less than or equal to another specified YearMonthDurationYearMonthDurationYearMonthDuration.
Syntax
Public Shared Operator <=( _ duration1 As YearMonthDuration, _ duration2 As YearMonthDuration _ ) As Boolean
public static bool operator <( YearMonthDuration duration1, YearMonthDuration duration2 )
public: static bool operator <=( YearMonthDuration duration1, YearMonthDuration duration2 )
Parameters
- duration1
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The first YearMonthDurationYearMonthDurationYearMonthDuration to compare.
- duration2
Type: XmlPrime.YearMonthDurationXmlPrime.YearMonthDurationXmlPrime::YearMonthDuration
The second YearMonthDurationYearMonthDurationYearMonthDuration to compare.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if the duration1 is less than or equal to duration2; otherwise, false
False
false
.