NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TimeSpan Less Than Or Equal Operator

Determines wheter the first TimeSpan is less than and equal to the second TimeSpan.

[C#]
public static bool operator <=(
   TimeSpan t1,
   TimeSpan t2
);
[C++]
public: static bool operator op_LessThanOrEqual(
   TimeSpan t1,
   TimeSpan t2
);
[JScript]
returnValue = t1 <= t2;

[Visual Basic] In Visual Basic, you cannot use the operators defined by a type, nor override them or define your own.

[JScript] In JScript, you can use the operators defined by a type, but you cannot override them or define your own.

Arguments [JScript]

t1
The first TimeSpan.
t2
The second TimeSpan.

Parameters [C#, C++]

t1
The first TimeSpan.
t2
The second TimeSpan.

Return Value [C#, C++, JScript]

true if t1 is the less than and equal to t2; otherwise. false.

Remarks [C#, C++, JScript]

This TimeSpan operator performs the arithmetic function of comparing two TimeSpan values whether the first TimeSpan is less than and equal to the second TimeSpan (t1 <= t2) and returning a Boolean determination of their relationship.

See Also

TimeSpan Structure | TimeSpan Members | System Namespace