AdomdCommand.CommandTimeout Property
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.
Espacio de nombres: Microsoft.AnalysisServices.AdomdServer
Ensamblado: msmgdsrv (in msmgdsrv.dll)
Sintaxis
'Declaración
Public Property CommandTimeout As Integer
public int CommandTimeout { get; set; }
public:
virtual property int CommandTimeout {
int get () sealed;
void set (int ) sealed;
}
/** @property */
public final int get_CommandTimeout ()
/** @property */
public final void set_CommandTimeout (int )
public final function get CommandTimeout () : int
public final function set CommandTimeout ( : int)
Valor de propiedad
An integer that contains the time, in seconds, to wait for the command to run.
Excepciones
Tipo de excepción | Condición |
---|---|
System.ArgumentException | The property is set to a number less than zero (0). |
Notas
If this property is set to zero (0), the AdomdCommand waits indefinitely while trying to run a command. We do not recommend this setting.
Seguridad para subprocesos
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Plataformas
Plataformas de desarrollo
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Plataformas de destino
Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.
Vea también
Referencia
AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdServer Namespace