ADODC.BOFActionEnum 枚举



此 API 现已过时。

提供常量以与 Visual Basic 6.0 BOFAction 属性保持兼容。Provides constants for compatibility with the Visual Basic 6.0 BOFAction property.

public: enum class ADODC::BOFActionEnum
public enum ADODC.BOFActionEnum
[System.Obsolete("Microsoft.VisualBasic.Compatibility.* classes are obsolete and supported within 32 bit processes only.")]
public enum ADODC.BOFActionEnum
type ADODC.BOFActionEnum = 
Public Enum ADODC.BOFActionEnum


adDoMoveFirst 0

将第一个记录保持为当前记录。Keeps the first record as the current record.

adStayBOF 1

移过 Recordset 的开始处会在第一个记录上触发 Validate 事件,然后在无效 (BOF) 记录上触发 Reposition 事件。Moving past the start of a Recordset triggers the Validate event on the first record, followed by a Reposition event on the invalid (BOF) record. 此时,将禁用 ADODC 上的“移到上一条记录”按钮。At this point, the Move Previous button on the ADODC is disabled.


在 Visual Basic 6.0 中,如果 BOF 属性为 true,则使用 BOFAction 属性来确定 ADODC 所采取的操作。In Visual Basic 6.0, the BOFAction property was used to determine what action the ADODC takes when the BOF property is true.

这些常量使已从 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.NET Framework 实现有显著区别时才需要这些函数和对象。They are necessary only when the Visual Basic 6.0 code model differs significantly from the .NET Framework.NET Framework implementation.