ShiftConstants 列舉

定義

警告

此 API 現已淘汰。

提供與 Visual Basic 6.0 中切換參數遮罩常數相容的常數。Provides constants for compatibility with the shift parameter mask constants in Visual Basic 6.0.

public enum class ShiftConstants
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only. https://go.microsoft.com/fwlink/?linkid=160862")]
public enum ShiftConstants
type ShiftConstants = 
Public Enum ShiftConstants
繼承
ShiftConstants
屬性

欄位

AltMask 4

相當於 Visual Basic 6.0 常數 vbAltMaskEquivalent to the Visual Basic 6.0 constant vbAltMask.

CtrlMask 2

相當於 Visual Basic 6.0 常數 vbCtrlMaskEquivalent to the Visual Basic 6.0 constant vbCtrlMask.

ShiftMask 1

相當於 Visual Basic 6.0 常數 vbShiftMaskEquivalent to the Visual Basic 6.0 constant vbShiftMask.

備註

在 Visual Basic 6.0 中,移位參數遮罩常數是用來表示各種索引鍵和滑鼠事件處理常式之 Shift 參數中輔助按鍵的狀態。In Visual Basic 6.0, shift parameter mask constants were used to represent the state of modifier keys in the Shift parameter of various key and mouse event handlers. 在 Visual Basic 中,索引鍵和滑鼠事件的參數已變更,而且不再需要這些常數。In Visual Basic, the parameters for key and mouse events have changed, and these constants are no longer necessary. 這些常數可讓已從 Visual Basic 6.0 升級的程式碼繼續執行,而不需要進行其他修改。These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional modification.

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic。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. 在大多數情況下,這些函式和物件會複製在 .NET Framework.NET Framework 的其他命名空間中可以找到的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .NET Framework.NET Framework. 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework implementation.

適用於

另請參閱