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

定義

將參考次數 (Reference Count) 加入至現有的資料列控制代碼。

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[]

要遞增參考次數之資料列控制代碼的陣列。 每次資料列控制代碼出現在陣列中時,資料列控制代碼的參考次數就會增加 1。

refCounts
Int32[]

具有 cRows 元素的陣列,要在其中傳回每個資料列控制代碼的新參考次數。 消費者會為這個陣列配置記憶體。 如果 refCounts 為 null 指標,則不會傳回參考次數。

rowStatus
Int32[]

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

備註

注意

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

適用於