OPC Studio User's Guide and Reference
Add Method (CompositeConnectivity)



OpcLabs.BaseLibComponents Assembly > OpcLabs.BaseLib.Connectivity Namespace > CompositeConnectivity Class : Add Method
The constituent connectivity to be added.

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

Adds a constituent connectivity to this composed connectivity.
Syntax
'Declaration
 
Public Function Add( _
   ByVal connectivity As IConnectivity _
) As Boolean
'Usage
 
Dim instance As CompositeConnectivity
Dim connectivity As IConnectivity
Dim value As Boolean
 
value = instance.Add(connectivity)

Parameters

connectivity
The constituent connectivity to be added.

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

Return Value

true if the constituent connectivity has been successfully added; false otherwise.
Exceptions
ExceptionDescription

A null reference (Nothing in Visual Basic) is passed to a method that does not accept it as a valid argument.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

An operation was performed on a disposed object.
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