ADODC.EOFActionEnum 枚举



此 API 现已过时。

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

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


adDoAddNew 2

移过最后一条记录会触发 ADODCValidation 事件在当前记录上发生,然后发生自动 AddNew 事件,然后在新记录上发生 Reposition 事件。Moving past the last record triggers the ADODC's Validation event to occur on the current record, followed by an automatic AddNew, followed by a Reposition event on the new record.

adDoMoveLast 0

将最后一个记录保持为当前记录。Keeps the last record as the current record.

adStayEOF 1

移过 Recordset 的末尾会触发 ADODCValidation 事件在最后一条记录上发生;然后在无效的 (Reposition) 记录上发生 EOF 事件。Moving past the end of a Recordset triggers the ADODC's Validation event on the last record, followed by a Reposition event on the invalid (EOF) record. 此时,将禁用 ADODC 上的“移到下一条记录”按钮。At this point, the MoveNext button on the ADODC is disabled.


在 Visual Basic 6.0 中,如果 EOF 属性为 true,则使用 EOFAction 属性来确定 ADODC 所采取的操作。In Visual Basic 6.0, the EOFAction property was used to determine what action the ADODC takes when the EOF 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.