Support.Imp 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在兩個運算式上執行邏輯隱含式 (Logical Implication)。
多載
| Imp(Object, Object) |
已淘汰.
在兩個 Object 運算式上執行邏輯隱含式。 |
| Imp(Int64, Int64) |
已淘汰.
在兩個 Int64 運算式上執行邏輯隱含式。 |
| Imp(Int32, Int32) |
已淘汰.
在兩個 Int32 運算式上執行邏輯隱含式。 |
| Imp(Byte, Byte) |
已淘汰.
在兩個 Byte 運算式上執行邏輯隱含式。 |
| Imp(Boolean, Boolean) |
已淘汰.
在兩個 Boolean 運算式上執行邏輯隱含式。 |
| Imp(Int16, Int16) |
已淘汰.
在兩個 Int16 運算式上執行邏輯隱含式。 |
Imp(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 ^ Imp(System::Object ^ a, System::Object ^ b);
public static object Imp(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 Imp(object a, object b);
static member Imp : 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 Imp : obj * obj -> obj
Public Function Imp (a As Object, b As Object) As Object
參數
傳回
Object,包含結果。
- 屬性
備註
Visual Basic 6.0Imp運算子已不再支援 Visual Basic 中。 升級工具會使用此函式來取代Imp專案升級期間的運算子。 在升級期間,Variant 資料類型會升級到Object。
在 Visual Basic 中使用Not並XOr取代Imp。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。
另請參閱
適用於
Imp(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 Imp(long a, long b);
public static long Imp(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 Imp(long a, long b);
static member Imp : 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 Imp : int64 * int64 -> int64
Public Function Imp (a As Long, b As Long) As Long
參數
- a
- Int64
Long 運算式。
- b
- Int64
Long 運算式。
傳回
Long,包含結果。
- 屬性
備註
Visual Basic 6.0Imp運算子已不再支援 Visual Basic 中。 升級工具會使用此函式來取代Imp專案升級期間的運算子。
在 Visual Basic 中使用Not並XOr取代Imp。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。
另請參閱
適用於
Imp(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 Imp(int a, int b);
public static int Imp(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 Imp(int a, int b);
static member Imp : 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 Imp : int * int -> int
Public Function Imp (a As Integer, b As Integer) As Integer
參數
- a
- Int32
Integer 運算式。
- b
- Int32
Integer 運算式。
傳回
Integer,包含結果。
- 屬性
備註
Visual Basic 6.0Imp運算子已不再支援 Visual Basic 中。 升級工具會使用此函式來取代Imp專案升級期間的運算子。
在 Visual Basic 中使用Not並XOr取代Imp。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。
另請參閱
適用於
Imp(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 Imp(System::Byte a, System::Byte b);
public static byte Imp(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 Imp(byte a, byte b);
static member Imp : 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 Imp : byte * byte -> byte
Public Function Imp (a As Byte, b As Byte) As Byte
參數
傳回
Byte,包含結果。
- 屬性
備註
Visual Basic 6.0Imp運算子已不再支援 Visual Basic 中。 升級工具會使用此函式來取代Imp專案升級期間的運算子。
在 Visual Basic 中使用Not並XOr取代Imp。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。
另請參閱
適用於
Imp(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 Imp(bool a, bool b);
public static bool Imp(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 Imp(bool a, bool b);
static member Imp : 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 Imp : bool * bool -> bool
Public Function Imp (a As Boolean, b As Boolean) As Boolean
參數
傳回
Boolean,包含結果。
- 屬性
備註
Visual Basic 6.0Imp運算子已不再支援 Visual Basic 中。 升級工具會使用此函式來取代Imp專案升級期間的運算子。
在 Visual Basic 中使用Not並XOr而不是Imp。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。
另請參閱
適用於
Imp(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 Imp(short a, short b);
public static short Imp(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 Imp(short a, short b);
static member Imp : 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 Imp : int16 * int16 -> int16
Public Function Imp (a As Short, b As Short) As Short
參數
- a
- Int16
Short 運算式。
- b
- Int16
Short 運算式。
傳回
Short,包含結果。
- 屬性
備註
Visual Basic 6.0Imp運算子已不再支援 Visual Basic 中。 升級工具會使用此函式來取代Imp專案升級期間的運算子。
在 Visual Basic 中使用Not並XOr取代Imp。
注意
Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。