TimeIntervalCompare Method |
Compares interval to relative time (compareTo) with a lower bound and upper bound
threshold.
Namespace: StreamCodersAssembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public int Compare(
TimeSpan compareTo,
TimeSpan lowerBoundDelta,
TimeSpan upperBoundDelta
)
Public Function Compare (
compareTo As TimeSpan,
lowerBoundDelta As TimeSpan,
upperBoundDelta As TimeSpan
) As Integer
public:
int Compare(
TimeSpan compareTo,
TimeSpan lowerBoundDelta,
TimeSpan upperBoundDelta
)
member Compare :
compareTo : TimeSpan *
lowerBoundDelta : TimeSpan *
upperBoundDelta : TimeSpan -> int
Parameters
- compareTo
- Type: SystemTimeSpan
relative time to compare interval to. - lowerBoundDelta
- Type: SystemTimeSpan
Lower bound delta. - upperBoundDelta
- Type: SystemTimeSpan
Upper bound delta.
Return Value
Type:
Int32Returns 0 if time interval is within lower and upper bounds (inclusive) when
compared to relative time.
Returns -1 if time interval is smaller than lower bounds.
Returns 1 if time interval is greater than upper bounds.
See Also