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
'宣言
Property ConnectionTimeout As Integer
'使用
Dim instance As IVsDataConnection
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 should be thrown when you try to set the time-out.
Permissions
- 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.