Прочетете на английски Редактиране

Споделяне чрез


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.

C#
public static bool Eqv(bool a, bool b);
C#
[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);

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.

Бележка

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

.NET Framework 4.8.1 и други версии
Продукт Версии (остаряло)
.NET Framework 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

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.

C#
public static byte Eqv(byte a, byte b);
C#
[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);

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.

Бележка

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

.NET Framework 4.8.1 и други версии
Продукт Версии (остаряло)
.NET Framework 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

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.

C#
public static short Eqv(short a, short b);
C#
[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);

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.

Бележка

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

.NET Framework 4.8.1 и други версии
Продукт Версии (остаряло)
.NET Framework 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

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.

C#
public static int Eqv(int a, int b);
C#
[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);

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.

Бележка

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

.NET Framework 4.8.1 и други версии
Продукт Версии (остаряло)
.NET Framework 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

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.

C#
public static long Eqv(long a, long b);
C#
[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);

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.

Бележка

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

.NET Framework 4.8.1 и други версии
Продукт Версии (остаряло)
.NET Framework 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

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.

C#
public static object Eqv(object a, object b);
C#
[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);

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.

Бележка

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

.NET Framework 4.8.1 и други версии
Продукт Версии (остаряло)
.NET Framework 2.0, 3.0, 3.5 (4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)