IVsDataConnection.ConnectionTimeout Property
Gets or sets the amount of time to wait to establish a connection before terminating the attempt and generating a time-out error.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Déclaration
Property ConnectionTimeout As Integer
Get
Set
int ConnectionTimeout { get; set; }
property int ConnectionTimeout {
int get ();
void set (int value);
}
abstract ConnectionTimeout : int with get, set
function get ConnectionTimeout () : int
function set ConnectionTimeout (value : int)
Property Value
Type: System.Int32
An integer representation of the allowable time-out period.
Remarks
The default 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.
Notes
If the provider does not support time-outs, a NotSupportedException should be thrown when you try to set the time-out.
.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.