Rediger

Del via


Support.Eqv Method

Definition

Performs a logical equivalence on two expressions.

Overloads

Eqv(Boolean, Boolean)
Obsolete.

Performs a logical equivalence on two Boolean expressions.

Eqv(Byte, Byte)
Obsolete.

Performs a logical equivalence on two Byte expressions.

Eqv(Int16, Int16)
Obsolete.

Performs a logical equivalence on two Int16 expressions.

Eqv(Int32, Int32)
Obsolete.

Performs a logical equivalence on two Int32 expressions.

Eqv(Int64, Int64)
Obsolete.

Performs a logical equivalence on two Int64 expressions.

Eqv(Object, Object)
Obsolete.

Performs a logical equivalence on two Object expressions.

Eqv(Boolean, Boolean)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Performs a logical equivalence on two Boolean expressions.

public:
 static bool Eqv(bool a, bool b);
public static bool Eqv (bool a, bool b);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static bool Eqv (bool a, bool b);
static member Eqv : bool * bool -> bool
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member Eqv : bool * bool -> bool
Public Function Eqv (a As Boolean, b As Boolean) As Boolean

Parameters

a
Boolean

A Boolean to compare.

b
Boolean

A Boolean to compare.

Returns

true if the two expressions are equal; otherwise false.

Attributes

Remarks

If either expression is Null, result is also Null. When neither expression is Null, result is determined according to the following table:

If expression1 is And expression2 is The result is
true true true
true false false
false true false
false false true

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; use the equals (=) comparison operator in place of Eqv for logical evaluations.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

Eqv(Byte, Byte)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Performs a logical equivalence on two Byte expressions.

public:
 static System::Byte Eqv(System::Byte a, System::Byte b);
public static byte Eqv (byte a, byte b);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static byte Eqv (byte a, byte b);
static member Eqv : byte * byte -> byte
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member Eqv : byte * byte -> byte
Public Function Eqv (a As Byte, b As Byte) As Byte

Parameters

a
Byte

A Byte to compare.

b
Byte

A Byte to compare.

Returns

A Byte that contains the result of the bitwise comparison.

Attributes

Remarks

The Eqv operator performs a bitwise comparison of identically positioned bits in two numeric expressions and sets the corresponding bit according to the following table:

If bit in expression1 is And bit in expression2 is The result is
0 0 1
0 1 0
1 0 0
1 1 1

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not and XOr operators.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

Eqv(Int16, Int16)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Performs a logical equivalence on two Int16 expressions.

public:
 static short Eqv(short a, short b);
public static short Eqv (short a, short b);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static short Eqv (short a, short b);
static member Eqv : int16 * int16 -> int16
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member Eqv : int16 * int16 -> int16
Public Function Eqv (a As Short, b As Short) As Short

Parameters

a
Int16

A Int16 to compare.

b
Int16

A Int16 to compare.

Returns

A Int16 that contains the result of the comparison.

Attributes

Remarks

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not and XOr operators.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

Eqv(Int32, Int32)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Performs a logical equivalence on two Int32 expressions.

public:
 static int Eqv(int a, int b);
public static int Eqv (int a, int b);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static int Eqv (int a, int b);
static member Eqv : int * int -> int
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member Eqv : int * int -> int
Public Function Eqv (a As Integer, b As Integer) As Integer

Parameters

a
Int32

A Int32 to compare.

b
Int32

A Int32 to compare.

Returns

A Int32 that contains the result of the comparison.

Attributes

Remarks

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not and XOr operators.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

Eqv(Int64, Int64)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Performs a logical equivalence on two Int64 expressions.

public:
 static long Eqv(long a, long b);
public static long Eqv (long a, long b);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static long Eqv (long a, long b);
static member Eqv : int64 * int64 -> int64
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member Eqv : int64 * int64 -> int64
Public Function Eqv (a As Long, b As Long) As Long

Parameters

a
Int64

A Int64 to compare.

b
Int64

A Int64 to compare.

Returns

A Int64 that contains the result of the comparison.

Attributes

Remarks

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not and XOr operators.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to

Eqv(Object, Object)

Caution

Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862

Performs a logical equivalence on two Object expressions.

public:
 static System::Object ^ Eqv(System::Object ^ a, System::Object ^ b);
public static object Eqv (object a, object b);
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")]
public static object Eqv (object a, object b);
static member Eqv : obj * obj -> obj
[<System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. http://go.microsoft.com/fwlink/?linkid=160862")>]
static member Eqv : obj * obj -> obj
Public Function Eqv (a As Object, b As Object) As Object

Parameters

a
Object

A Object to compare.

b
Object

A Object to compare.

Returns

A Object that contains the result of the comparison.

Attributes

Remarks

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not and XOr operators.

Note

Functions and objects in the Microsoft.VisualBasic.Compatibility.VB6 namespace are provided for use by the tools for upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

See also

Applies to