ADODC.CommandTimeout 屬性

定義

它會取得或設定等待指令從伺服器回傳的持續時間(以秒 ADODC 為單位)。

public:
 property int CommandTimeout { int get(); void set(int value); };
[Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCCommandTimeout")]
public int CommandTimeout { get; set; }
[<Microsoft.VisualBasic.Compatibility.VB6.SRDescription("ADODC_DESCCommandTimeout")>]
member this.CommandTimeout : int with get, set
Public Property CommandTimeout As Integer

屬性值

以及 Integer 該欄位指定連線建立時等待的秒數。 預設為 15 秒。

屬性

備註

當這段時間過後仍未完成指令,提供者會對呼叫應用程式提出例外並取消該指令。

Note

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

適用於