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 命名空间