OPC Studio User's Guide and Reference
AliasChangedNotification Constructor



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Aliasing Namespace > AliasChangedNotification Class : AliasChangedNotification Constructor
The old alias name.

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

The new alias name.

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

An indication whether the alias value has changed.
An indication whether the alias metadata has changed.
Initializes a new instance of the class, with given data.
Syntax
'Declaration
 
Public Function New( _
   ByVal oldAliasName As String, _
   ByVal newAliasName As String, _
   ByVal valueChanged As Boolean, _
   ByVal aliasMetadataChanged As Boolean _
)
'Usage
 
Dim oldAliasName As String
Dim newAliasName As String
Dim valueChanged As Boolean
Dim aliasMetadataChanged As Boolean
 
Dim instance As New AliasChangedNotification(oldAliasName, newAliasName, valueChanged, aliasMetadataChanged)

Parameters

oldAliasName
The old alias name.

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

newAliasName
The new alias name.

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

valueChanged
An indication whether the alias value has changed.
aliasMetadataChanged
An indication whether the alias metadata has changed.
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.

Remarks

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