AdomdCommand.CommandTimeout プロパティ

AdomdCommand がコマンドの実行を待機する時間を取得します。値の設定も可能です。この時間内にコマンドを実行できなかった場合は、コマンドの実行が中止されてエラーが生成されます。

名前空間:  Microsoft.AnalysisServices.AdomdServer
アセンブリ:  msmgdsrv (msmgdsrv.dll)

構文

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

value = instance.CommandTimeout

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

プロパティ値

型: System.Int32
コマンドの実行を待機する秒数。

実装

IDbCommand.CommandTimeout

例外

例外 条件
System.ArgumentException

プロパティが 0 より小さい数値に設定されています。

説明

このプロパティが 0 に設定されている場合、コマンドの実行の試行中、AdomdCommand は無期限に待機します。 この設定は推奨されません。

関連項目

参照

AdomdCommand クラス

Microsoft.AnalysisServices.AdomdServer 名前空間