Share via


IVsDataConnectionSupport.ConnectionTimeout Property

When implemented by a class, gets or sets the amount of time to wait when establishing a connection before terminating the attempt and generating a time-out error.

Namespace:  Microsoft.VisualStudio.Data.Services.SupportEntities
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'Declaration
Property ConnectionTimeout As Integer
'Usage
Dim instance As IVsDataConnectionSupport 
Dim value As Integer 

value = instance.ConnectionTimeout

instance.ConnectionTimeout = value
int ConnectionTimeout { get; set; }
property int ConnectionTimeout {
    int get ();
    void set (int value);
}
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.

Note

If the provider does not support time-outs, a NotSupportedException is thrown if you try to set one.

.NET Framework Security

See Also

Reference

IVsDataConnectionSupport Interface

IVsDataConnectionSupport Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace