Condividi tramite


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.

Spazio dei nomi: Microsoft.AnalysisServices.AdomdClient
Assembly : Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)

Sintassi

'Dichiarazione
Public Property CommandTimeout As Integer
public int CommandTimeout { get; set; }
public:
virtual property int CommandTimeout {
    int get () sealed;
    void set (int value) sealed;
}
/** @property */
public final int get_CommandTimeout ()

/** @property */
public final void set_CommandTimeout (int value)
public final function get CommandTimeout () : int

public final function set CommandTimeout (value : int)

Valore proprietà

An integer that contains the time, in seconds, to wait for the command to run.

Eccezioni

Tipo di eccezione Condizione
System.ArgumentException

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

Osservazioni

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

Thread Safety

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

AdomdCommand Class
AdomdCommand Members
Microsoft.AnalysisServices.AdomdClient Namespace