IRowset.AddRefRows(Int32, Int32[], Int32[], Int32[]) 方法

定義

為現有的列柄新增一個參考計數。

public:
 void AddRefRows(int cRows, cli::array <int> ^ hRows, [Runtime::InteropServices::Out] cli::array <int> ^ % refCounts, [Runtime::InteropServices::Out] cli::array <int> ^ % rowStatus);
public void AddRefRows(int cRows, int[] hRows, out int[] refCounts, out int[] rowStatus);
abstract member AddRefRows : int * int[] * Int32[] * Int32[] -> unit
Public Sub AddRefRows (cRows As Integer, hRows As Integer(), ByRef refCounts As Integer(), ByRef rowStatus As Integer())

參數

cRows
Int32

要增加參考的列數計入。

hRows
Int32[]

一個列的手把陣列,用來遞增參考計數。 列柄的參考數量會根據每次出現在陣列中增加一。

refCounts
Int32[]

一個陣列,裡面有 cRows 元素用來回傳每個列 handle 的新參考計數。 消費者為此陣列分配記憶體。 如果 refCounts 是空指標,則不會回傳任何參考計數。

rowStatus
Int32[]

一個陣列,包含 cRows 可回傳各列 hRows狀態的元素。

備註

Note

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

適用於