Send feedback on this topic.
Teradata.Client.Provider
Precedes(TdPeriodTimestamp) Method



Teradata.Client.Provider Namespace > TdPeriodTimestamp Structure > Precedes Method : Precedes(TdPeriodTimestamp) Method
The TdPeriodTimestamp operand.
Indicates whether this instance precedes the period value.
Syntax
'Declaration
 
Public Overloads Function Precedes( _
   ByVal value As TdPeriodTimestamp _
) As Boolean
'Usage
 
Dim instance As TdPeriodTimestamp
Dim value As TdPeriodTimestamp
Dim value As Boolean
 
value = instance.Precedes(value)
public bool Precedes( 
   TdPeriodTimestamp value
)
public:
bool Precedes( 
   TdPeriodTimestamp value
) 

Parameters

value
The TdPeriodTimestamp operand.

Return Value

A true is returned when this instance precedes the value, otherwise a false is returned.
Remarks

A false will be returned if value is TdPeriodTimestamp.Null.

This instance will precede the value if the ending bound of this instance is less than or equal to the starting bound of the value.

In the following examples consider this instance to be the Left operand, and the right operand as the value. The Left and Right operands are defined as (bL, eL) and (bR, eR), respectively.

Example Comments
             |-----------|-----------|
             bL        eL bR         eR
             
Precedes = true
             |-------|------|--------|
             bL      eL     bR       eR
             
Precedes = true
             |-------|-------|--------|
             bL      bR      eL       eR
             

Precedes = false

There is an intersection between the operands; therfore, the left does not precede the right.

             |-------|--------|
             bR    eR bL      eL
             

Precedes = false

The left operand appears after the right operand.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdPeriodTimestamp Structure
TdPeriodTimestamp Members
Overload List