ADODC.CommandType 屬性

定義

重要

此 API 不符合 CLS 規範。

取得或設定值,這個值會通知 ADODC,在開啟 Recordset 時要傳遞的命令類型。

public:
 property ADODB::CommandTypeEnum CommandType { ADODB::CommandTypeEnum get(); void set(ADODB::CommandTypeEnum value); };
[Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCCommandType")]
[System.CLSCompliant(false)]
public ADODB.CommandTypeEnum CommandType { get; set; }
[<Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCCommandType")>]
[<System.CLSCompliant(false)>]
member this.CommandType : ADODB.CommandTypeEnum with get, set
Public Property CommandType As CommandTypeEnum

屬性值

ADODB.CommandTypeEnum

ADODB.CommandTypeEnum 列舉型別,指定命令類型。

屬性

備註

設定此屬性可優化命令的執行。

注意

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

適用於