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

定義

釋放資料列。

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

要釋放的資料列數目。

hRows
Int32[]

要釋放之資料列的控制代碼陣列。 資料列控制代碼不需要形成邏輯叢集,因為資料列控制代碼可能是在不同時間取得,而且不一定是連續基礎資料列。 每次資料列控制代碼出現在陣列中時,資料列控制代碼就會遞減一個參考次數。

rowOptions
IntPtr

nativeint

包含位元遮罩的 cRows 元素陣列,表示釋放資料列時要指定的其他選項。

rowRefCounts
IntPtr

nativeint

具有 cRows 元素的陣列,要在其中傳回每個資料列的新參考次數。

rgRowStatus
IntPtr

nativeint

具有 cRows 元素的陣列,要在其中傳回值,這個值表示 hRows 中指定的每個資料列的狀態。

傳回

Integer,表示結果。

備註

注意

Microsoft.VisualBasic.Compatibility.VB6 命名空間中的函式和物件都是供這些工具使用,以便從 Visual Basic 6.0 升級至 Visual Basic 2008。 在大多數情況下,這些函式和物件會複製在 .NET Framework 其他命名空間中可以找到的功能。 只有當 Visual Basic 6.0 程式碼模型與 .NET Framework 實作有顯著差異時,才會需要這些函式和物件。

適用於