OPC Studio User's Guide and Reference
Equals(Object) Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Network Namespace > HostElement Class > Equals Method : Equals(Object) Method
The System.Object to compare with the current System.Object.

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

Determines whether the specified System.Object is equal to the current System.Object.
Syntax
'Declaration
 
Public Overloads Overrides Function Equals( _
   ByVal obj As Object _
) As Boolean
'Usage
 
Dim instance As HostElement
Dim obj As Object
Dim value As Boolean
 
value = instance.Equals(obj)
public override bool Equals( 
   object obj
)
public:
bool Equals( 
   Object^ obj
) override 

Parameters

obj
The System.Object to compare with the current System.Object.

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

Return Value

true if the specified System.Object is equal to the current System.Object; otherwise, false.
Remarks

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