BaseDataEnvironment.Commands[] 屬性

定義

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。

多載

Commands

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。

Commands[Object]

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。

Commands

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。

C#
public Microsoft.VisualBasic.Collection Commands { get; }

屬性值

ADODB.Command 物件的集合。

備註

當應用程式升級至 Visual Basic 時,會建立 來 BaseDataEnvironment 啟用 ADO 相關程式碼。

注意

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

適用於

.NET Framework 4.8.1 及其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Commands[Object]

重要

此 API 不符合 CLS 規範。

取得 ADODB.Command 物件的集合,以便在升級自 Visual Basic 6.0 的應用程式中使用。

C#
[System.CLSCompliant(false)]
public ADODB.Command Commands[object lpVar] { get; }

參數

lpVar
Object

Visual Basic 6.0 Variant,其中包含 ADODB.Command 物件。

屬性值

ADODB.Command

ADODB.Command 物件的集合。

屬性

備註

當應用程式升級至 Visual Basic 時,會建立 來 BaseDataEnvironment 啟用 ADO 相關程式碼。

注意

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

適用於

.NET Framework 4.8.1 及其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1