IRowset.ReleaseRows(Int32, Int32[], IntPtr, IntPtr, IntPtr) 方法

定义

释放行。Releases rows.

public:
 int ReleaseRows(int cRows, cli::array <int> ^ hRows, IntPtr rowOptions, IntPtr rowRefCounts, IntPtr rgRowStatus);
public int ReleaseRows (int cRows, int[] hRows, IntPtr rowOptions, IntPtr rowRefCounts, IntPtr rgRowStatus);
abstract member ReleaseRows : int * int[] * nativeint * nativeint * nativeint -> int
Public Function ReleaseRows (cRows As Integer, hRows As Integer(), rowOptions As IntPtr, rowRefCounts As IntPtr, rgRowStatus As IntPtr) As Integer

参数

cRows
Int32

要释放的行数。The number of rows to release.

hRows
Int32[]

要释放的行的句柄数组。An array of handles of the rows to be released. 行句柄不需要形成逻辑群集;它们可能是在不同时间获取的,因此不必针对连续的基础行。The row handles do not need to form a logical cluster; they may have been obtained at separate times and need not be for contiguous underlying rows. 数据组中每出现一次行句柄,其引用数即递减 1。Row handles are decremented by one reference count for each time they appear in the array.

rowOptions
IntPtr

一个由 cRows 元素构成的数组,这些元素包含位掩码,用于指示在释放行时要指定的附加选项。An array of cRows elements containing bitmasks indicating additional options to be specified when a row is released.

rowRefCounts
IntPtr

一个包含 cRows 元素的数组,用于返回每行的新引用数。An array with cRows elements in which to return the new reference count of each row.

rgRowStatus
IntPtr

包含 cRows 元素的数组,用于返回指示 hRows 中指定的每行状态的值。An array with cRows elements in which to return values indicating the status of each row specified in hRows.

返回

Int32

一个表示结果的 IntegerAn Integer representing the result.

注解

备注

Microsoft.VisualBasic.Compatibility.VB6 命名空间中的函数和对象用于工具从 Visual Basic 6.0 升级到 Visual Basic 2008。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 2008. 多数情况下,这些函数和对象可再现 .NET Framework 中其他命名空间的功能。In most cases, these functions and objects duplicate functionality that you can find in other namespaces in the .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.

适用于