次の方法で共有


IDbCommand.CommandTimeout プロパティ

コマンド実行の試行を終了してエラーを生成する前に、待機時間を取得または設定します。

名前空間:  Microsoft.ReportingServices.DataProcessing
アセンブリ:   Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

構文

'宣言
Property CommandTimeout As Integer 
    Get 
    Set
'使用
Dim instance As IDbCommand 
Dim value As Integer 

value = instance.CommandTimeout

instance.CommandTimeout = value
int CommandTimeout { get; set; }
property int CommandTimeout {
    int get ();
    void set (int value);
}
abstract CommandTimeout : int with get, set
function get CommandTimeout () : int 
function set CommandTimeout (value : int)

プロパティ値

型: System.Int32
コマンドの実行を待機する時間 (秒単位) です。既定値は 30 秒です。

説明

例外

例外の種類

条件

ArgumentException

割り当てられるプロパティ値は、0 より小さくなります。

関連項目

参照

IDbCommand インターフェイス

Microsoft.ReportingServices.DataProcessing 名前空間