Partilhar via


Propriedade do RDL AdomdCommand.CommandTimeout

Gets or sets the time to wait for a command to run before the AdomdCommand stops trying to run the command and generates an error.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (em msmgdsrv.dll)

Sintaxe

'Declaração
Public Property CommandTimeout As Integer 
    Get 
    Set
'Uso
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)

Valor da propriedade

Tipo: System.Int32
The time, in seconds, to wait for the command to run.

Implementa

IDbCommand.CommandTimeout

Exceções

Exceção Condição
System.ArgumentException

The property is set to a number less than zero (0).

Comentários

If this property is set to zero (0), the AdomdCommand waits indefinitely while trying to run a command. We do not recommend this setting.

Consulte também

Referência

AdomdCommand Classe

Namespace Microsoft.AnalysisServices.AdomdServer