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

'宣言
Property ConnectionTimeout As Integer
'使用
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.

注意

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

Permissions

See Also

Reference

IVsDataConnectionSupport Interface

IVsDataConnectionSupport Members

Microsoft.VisualStudio.Data.Services.SupportEntities Namespace