ADODC.BOFActionEnum ADODC.BOFActionEnum ADODC.BOFActionEnum ADODC.BOFActionEnum Enum

定义

警告

此 API 现已过时。

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

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

字段

adDoMoveFirst adDoMoveFirst adDoMoveFirst adDoMoveFirst 0

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

adStayBOF adStayBOF adStayBOF 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 中, BOFAction属性为 true 时BOF , 使用属性来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.

适用于