RealTimeConnection.ConnectionTimeout Property
Gets or sets the connection idle timeout value. If the connection is idle for the duration specified by this value, the connection will be disconnected. To disable, the value can be set to TimeSpan.Zero.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Property ConnectionTimeout As TimeSpan
Get
Set
'Usage
Dim instance As RealTimeConnection
Dim value As TimeSpan
value = instance.ConnectionTimeout
instance.ConnectionTimeout = value
public TimeSpan ConnectionTimeout { get; set; }
Property Value
Type: System.TimeSpan
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown when the value given is negative. |
InvalidOperationException | Thrown when the connection manager is not the server connection manager. |