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



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

Parameters

left
A TdIntervalHourToMinute instance.
right
A TdIntervalHourToMinute instance.

Return Value

true if the two TdIntervalHourToMinute 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 TdIntervalHourToMinute.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.
TdIntervalHourToMinute firstInterval = new TdIntervalHourToMinute(5, 15);
TdIntervalHourToMinute secondInterval = new TdIntervalHourToMinute(20, 15);
 
// The following comparison methods and operators are equivalent
if (false == TdIntervalHourToMinute.Equals(firstInterval, secondInterval) ||
    firstInterval != secondInterval ||
    true == TdIntervalHourToMinute.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

TdIntervalHourToMinute Structure
TdIntervalHourToMinute Members
Overload List