IDbConnection.ConnectionTimeout 属性

Gets the time to wait, while trying to establish a connection, before terminating the attempt 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 中)

语法

声明
ReadOnly Property ConnectionTimeout As Integer 
    Get
用法
Dim instance As IDbConnection 
Dim value As Integer 

value = instance.ConnectionTimeout
int ConnectionTimeout { get; }
property int ConnectionTimeout {
    int get ();
}
abstract ConnectionTimeout : int
function get ConnectionTimeout () : int

属性值

类型:System.Int32

注释

A value of 0 indicates no limit to the wait time, rather than no wait time, and should be avoided in a ConnectionString because it would cause the connection to attempt to wait indefinitely.

Property Values

The time (in seconds) to wait for a connection to open. The default value is 15 seconds.

请参阅

参考

IDbConnection 接口

Microsoft.ReportingServices.DataProcessing 命名空间