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



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

Parameters

value
The TdPeriodDate 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 either this instance or the value is TdPeriodDate.Null.

The 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, this instance is considered the Left operand and right operand is 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

TdPeriodDate Structure
TdPeriodDate Members
Overload List