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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Communication Namespace > ConnectedCondition Class > ConnectedCondition Constructor : ConnectedCondition Constructor(CommunicationConnectionState,Exception)
The initial connection state of the condition. This value indicates the current state of the communication connection.
An exception that provides additional details about the connection state in error scenarios.

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

Initializes a new instance of the ConnectedCondition class with the specified connection state and exception.
Syntax
'Declaration
 
Public Function New( _
   ByVal connectionState As CommunicationConnectionState, _
   ByVal exception As Exception _
)
'Usage
 
Dim connectionState As CommunicationConnectionState
Dim exception As Exception
 
Dim instance As New ConnectedCondition(connectionState, exception)

Parameters

connectionState
The initial connection state of the condition. This value indicates the current state of the communication connection.
exception
An exception that provides additional details about the connection state in error scenarios.

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

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