Send feedback on this topic.
Teradata.Client.Provider
Equals(TdIntervalHourToSecond,TdIntervalHourToSecond) Method
Example 



Teradata.Client.Provider Namespace > TdIntervalHourToSecond Structure > Equals Method : Equals(TdIntervalHourToSecond,TdIntervalHourToSecond) Method
A TdIntervalHourToSecond instance.
A TdIntervalHourToSecond instance.
Compares two TdIntervalHourToSecond instances to determine whether they are equal.
Syntax
'Declaration
 
Public Overloads Shared Function Equals( _
   ByVal left As TdIntervalHourToSecond, _
   ByVal right As TdIntervalHourToSecond _
) As Boolean
'Usage
 
Dim left As TdIntervalHourToSecond
Dim right As TdIntervalHourToSecond
Dim value As Boolean
 
value = TdIntervalHourToSecond.Equals(left, right)
public static bool Equals( 
   TdIntervalHourToSecond left,
   TdIntervalHourToSecond right
)
public:
static bool Equals( 
   TdIntervalHourToSecond left,
   TdIntervalHourToSecond right
) 

Parameters

left
A TdIntervalHourToSecond instance.
right
A TdIntervalHourToSecond instance.

Return Value

true if the two TdIntervalHourToSecond instances are equal, false otherwise.
Remarks

The return value is true if the left is equal to the right, false otherwise.

Return Value Description
true

left is equal to right

-or-

left and right are TdIntervalHourToSecond.Null.

false

left is not equal to right

-or-

left is not Null and right is Null

-or-

left is Null and right is not Null.

Example
The following code example uses various comparison methods and operators.
TdIntervalHourToSecond firstInterval = new TdIntervalHourToSecond(5, 15, 0);
TdIntervalHourToSecond secondInterval = new TdIntervalHourToSecond(20, 15, 0);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalHourToSecond.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalHourToSecond.NotEquals(firstInterval, secondInterval) )
{
   Console.WriteLine(“firstInterval does not equal secondInterval”);
}
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

TdIntervalHourToSecond Structure
TdIntervalHourToSecond Members
Overload List