Compartir a través de


AdomdCommand.CommandTimeout Propiedad

Obtiene o establece el tiempo de espera para que se ejecute un comando antes de que AdomdCommand deje de intentar la ejecución del comando y genere un error.

Espacio de nombres:  Microsoft.AnalysisServices.AdomdServer
Ensamblado:  msmgdsrv (en msmgdsrv.dll)

Sintaxis

'Declaración
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 de la propiedad

Tipo: Int32
Tiempo (en segundos) que se esperará para que el comando se ejecute.

Implementa

IDbCommandCommandTimeout

Excepciones

Excepción Condición
ArgumentException

La propiedad se establece en un número menor que cero (0).

Comentarios

Si esta propiedad se establece en cero (0), AdomdCommand espera indefinidamente al intentar ejecutar un comando. Esta configuración no se recomienda.

Vea también

Referencia

AdomdCommand Clase

Espacio de nombres Microsoft.AnalysisServices.AdomdServer