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



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

Parameters

value
The TdPeriodTime operand.

Return Value

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

A false will be returned if the value is TdPeriodTime.Null.

This instance will succeed the value if the beginning bound of this instance is greater than or equal to the ending 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
            

Succeeds = false

The left operand appears before the right operand.

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

Succeeds = false

The left operand appears before the right operand.

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

Succeeds = false

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

            |-------|--------|
            bR    eR bL      eL
            
Succeeds = true
            |-------|---|-----|
            bR      eR  bL    eL
            
Succeeds = true
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

TdPeriodTime Structure
TdPeriodTime Members
Overload List