AdoDotNetConnectionSupport.ConnectionTimeout Property

Gets or sets the amount of time, in seconds, to wait to establish a connection before terminating the attempt and generating a time-out error.

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'宣言
Public Overrides Property ConnectionTimeout As Integer
'使用
Dim instance As AdoDotNetConnectionSupport
Dim value As Integer

value = instance.ConnectionTimeout

instance.ConnectionTimeout = value
public override int ConnectionTimeout { get; set; }
public:
virtual property int ConnectionTimeout {
    int get () override;
    void set (int value) override;
}
public override function get ConnectionTimeout () : int
public override function set ConnectionTimeout (value : int)

Property Value

Type: System.Int32

An integer representation of the allowable time-out period, in seconds.

Implements

IVsDataConnectionSupport.ConnectionTimeout

Exceptions

Exception Condition
NotSupportedException

The provider does not support connection time-out.

Remarks

The default implementation does not support setting a time-out value and throws the NotSupportedException exception when this operation is attempted.

The default time-out value depends on the data provider. A value of zero indicates that there is no time out, meaning the data provider will wait indefinitely, or until something other than the data provider causes it to time out, like a TCP/IP time-out. The value -1 indicates that time-outs are not supported by the provider.

Permissions

See Also

Reference

AdoDotNetConnectionSupport Class

AdoDotNetConnectionSupport Members

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace