ShiftConstants ShiftConstants ShiftConstants ShiftConstants Enum



此 API 现已过时。

提供常量以与 Visual Basic 6.0 中的 Shift 参数掩码常量保持兼容。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.")]
public enum ShiftConstants
type ShiftConstants = 
Public Enum ShiftConstants


AltMask AltMask AltMask AltMask 4

等效于 Visual Basic 6.0 常量 vbAltMaskEquivalent to the Visual Basic 6.0 constant vbAltMask.

CtrlMask CtrlMask CtrlMask CtrlMask 2

等效于 Visual Basic 6.0 常量 vbCtrlMaskEquivalent to the Visual Basic 6.0 constant vbCtrlMask.

ShiftMask ShiftMask ShiftMask 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.