OPC Studio User's Guide and Reference
ValueEquals Method (_Widget)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Widgets.ComTypes Namespace > _Widget Interface : ValueEquals Method
The other instance.
Defines a generalized method that classes must implement to create type-specific method for determining value equality of instances. Determines whether this instance has the same value as a given other instance.
Syntax
'Declaration
 
Function ValueEquals( _
   ByVal other As Object _
) As Boolean
'Usage
 
Dim instance As _Widget
Dim other As Object
Dim value As Boolean
 
value = instance.ValueEquals(other)
bool ValueEquals( 
   object other
)
bool ValueEquals( 
   Object^ other
) 

Parameters

other
The other instance.

Return Value

A System.Boolean indicating the result.
Remarks
We intentionally allow null to be passed in, in order to match the behavior of System.Object.Equals(System.Object).

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

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