Поделиться через


Свойство IDbCommand.CommandTimeout

Gets or sets the wait time before terminating the attempt to execute a command and generating an error.

Пространство имен:  Microsoft.ReportingServices.DataProcessing
Сборки:   Microsoft.ReportingServices.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Синтаксис

'Декларация
Property CommandTimeout As Integer 
    Get 
    Set
'Применение
Dim instance As IDbCommand 
Dim value As Integer 

value = instance.CommandTimeout

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

Значение свойства

Тип: System.Int32
The time (in seconds) to wait for the command to execute. The default value is 30 seconds.

Замечания

Exceptions

Exception type

Condition

ArgumentException

The property value assigned is less than 0.

См. также

Справочник

IDbCommand Интерфейс

Пространство имен Microsoft.ReportingServices.DataProcessing