Support.Eqv 方法

定義

對兩個表達式進行邏輯等價。

多載

名稱 Description
Eqv(Boolean, Boolean)
已淘汰.

對兩個 Boolean 表達式進行邏輯等價。

Eqv(Byte, Byte)
已淘汰.

對兩個 Byte 表達式進行邏輯等價。

Eqv(Int16, Int16)
已淘汰.

對兩個 Int16 表達式進行邏輯等價。

Eqv(Int32, Int32)
已淘汰.

對兩個 Int32 表達式進行邏輯等價。

Eqv(Int64, Int64)
已淘汰.

對兩個 Int64 表達式進行邏輯等價。

Eqv(Object, Object)
已淘汰.

對兩個 Object 表達式進行邏輯等價。

Eqv(Boolean, Boolean)

警告

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

對兩個 Boolean 表達式進行邏輯等價。

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

參數

a
Boolean

A Boolean 來比較。

b
Boolean

A Boolean 來比較。

傳回

true 若兩個表達式相等;否則 false

屬性

備註

若任一表達式為 Null,結果亦 Null為 。 當兩個表達式 Null都不是 時,結果依以下表格決定:

若表達式1為 而 expression2 是 結果為
true true true
true false false
false true false
false false true

在Visual Basic中,Eqv 運算子不再是 Visual Basic 語言的一部分;邏輯評估時可使用 equals (=) 比較運算子取代 Eqv

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於

Eqv(Byte, Byte)

警告

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

對兩個 Byte 表達式進行邏輯等價。

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

參數

a
Byte

A Byte 來比較。

b
Byte

A Byte 來比較。

傳回

Byte A 包含了位元比較的結果。

屬性

備註

運算子 Eqv 會對兩個數值表達式中位置相同的位元進行位元比對,並依下列表格設定對應的位元:

若 表達式 1 中的位元為 而 bit,在 expression2 中為 結果為
0 0 1
0 1 0
1 0 0
1 1 1

在 Visual Basic 中,Eqv 運算子不再是 Visual Basic 語言的一部分;位元運算時使用 NotXOr 運算子。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於

Eqv(Int16, Int16)

警告

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

對兩個 Int16 表達式進行邏輯等價。

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

參數

a
Int16

A Int16 來比較。

b
Int16

A Int16 來比較。

傳回

Int16 A 包含比較結果。

屬性

備註

在 Visual Basic 中,Eqv 運算子不再是 Visual Basic 語言的一部分;位元運算時使用 NotXOr 運算子。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於

Eqv(Int32, Int32)

警告

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

對兩個 Int32 表達式進行邏輯等價。

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

參數

a
Int32

A Int32 來比較。

b
Int32

A Int32 來比較。

傳回

Int32 A 包含比較結果。

屬性

備註

在 Visual Basic 中,Eqv 運算子不再是 Visual Basic 語言的一部分;位元運算時使用 NotXOr 運算子。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於

Eqv(Int64, Int64)

警告

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

對兩個 Int64 表達式進行邏輯等價。

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

參數

a
Int64

A Int64 來比較。

b
Int64

A Int64 來比較。

傳回

Int64 A 包含比較結果。

屬性

備註

在 Visual Basic 中,Eqv 運算子不再是 Visual Basic 語言的一部分;位元運算時使用 NotXOr 運算子。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於

Eqv(Object, Object)

警告

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

對兩個 Object 表達式進行邏輯等價。

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

參數

a
Object

A Object 來比較。

b
Object

A Object 來比較。

傳回

Object A 包含比較結果。

屬性

備註

在 Visual Basic 中,Eqv 運算子不再是 Visual Basic 語言的一部分;位元運算時使用 NotXOr 運算子。

Note

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式與物件,供工具從 Visual Basic 6.0 升級至 Visual Basic 2008 使用。 大多數情況下,這些函式和物件會重複你在 .NET Framework 中其他命名空間中能找到的功能。 只有當 Visual Basic 6.0 的程式碼模型與 .NET Framework 實作有顯著差異時,才需要使用這些工具。

另請參閱

適用於