Connectivity Software User's Guide and Reference
ConnectedCondition Constructor(CommunicationConnectionState,Exception,Int32)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Communication Namespace > ConnectedCondition Class > ConnectedCondition Constructor : ConnectedCondition Constructor(CommunicationConnectionState,Exception,Int32)
The initial connection state of the connection. This value indicates whether the connection is disconnected, connecting, connected, or disconnecting.
An System.Exception that provides details about an error that occurred.

The value of this parameter can be null (Nothing in Visual Basic).

The delay, in milliseconds, before retrying the connection. Must be a valid timeout value.
Initializes a new instance of the ConnectedCondition class with the specified connection state, exception, and retrial delay.
Syntax
'Declaration
 
Public Function New( _
   ByVal connectionState As CommunicationConnectionState, _
   ByVal exception As Exception, _
   ByVal retrialDelay As Integer _
)
'Usage
 
Dim connectionState As CommunicationConnectionState
Dim exception As Exception
Dim retrialDelay As Integer
 
Dim instance As New ConnectedCondition(connectionState, exception, retrialDelay)

Parameters

connectionState
The initial connection state of the connection. This value indicates whether the connection is disconnected, connecting, connected, or disconnecting.
exception
An System.Exception that provides details about an error that occurred.

The value of this parameter can be null (Nothing in Visual Basic).

retrialDelay
The delay, in milliseconds, before retrying the connection. Must be a valid timeout value.
Exceptions
ExceptionDescription
Thrown if retrialDelay is not a valid timeout value.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also