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



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

Parameters

left
A TdTimestampWithTimeZone instance.
right
A TdTimestampWithTimeZone instance.

Return Value

A boolean is returned that indicates the result of the comparison.
Remarks

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

Return Value Description
true

left and right are TdTimestampWithTimeZone.Null

-or-

left is equal to right.

false

left or right is Null

-or-

left is not equal to right.

Refer to TdTimestampWithTimeZone.CompareTo for more information.

Example
The following code example uses various comparison methods and operators.
TdTimestampWithTimeZone  later = new TdTimestampWithTimeZone(new DateTime(2010, 8, 31, 23, 45, 0), new TimeSpan(-8, 0, 0));
TdTimestampWithTimeZone earlier = new TdTimestampWithTimeZone(new DateTime(2010, 8, 31, 20, 30, 0), new TimeSpan(-8, 0, 0));
 
// The following comparison methods and operators are equivalent
if (false == TdTimestampWithTimeZone.Equals(later, earlier) ||
    later != earlier ||
    true == TdTimestampWithTimeZone.NotEquals(later, earlier) )
{
   Console.WriteLine(“later does not equal earlier”);
}
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

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List