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



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

Parameters

value
The TdPeriodTime 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 the value is TdPeriodTime.Null.

This instance precedes the value if the ending bound of this instance is less than or equal to the beginning bound of the value.

In the following examples consider the Left operand to be this instance, 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

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdPeriodTime Structure
TdPeriodTime Members
Overload List