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
'Déclaration
Public Overrides Property ConnectionTimeout As Integer
Get
Set
public override int ConnectionTimeout { get; set; }
public:
virtual property int ConnectionTimeout {
int get () override;
void set (int value) override;
}
abstract ConnectionTimeout : int with get, set
override ConnectionTimeout : int with get, set
override function get ConnectionTimeout () : int
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.