ArcFM Responder Mobile Developer Guide
Equals(DeviceInfo) Method






Device to compare
Compares two devices for equality
Syntax
'Declaration
 
Public Overloads Function Equals( _
   ByVal obj As DeviceInfo _
) As System.Boolean
'Usage
 
Dim instance As DeviceInfo
Dim obj As DeviceInfo
Dim value As System.Boolean
 
value = instance.Equals(obj)
public System.bool Equals( 
   DeviceInfo obj
)
public function Equals( 
    obj: DeviceInfo
): System.Boolean; 
public function Equals( 
   obj : DeviceInfo
) : System.boolean;
public: System.bool Equals( 
   DeviceInfo* obj
) 
public:
System.bool Equals( 
   DeviceInfo^ obj
) 

Parameters

obj
Device to compare

Return Value

true if both devices are considered the same.false otherwise
Remarks
The algorithm starts by comparing FCID and OID. If those are equal, it then compares EID. If either of the two devices have unknown EID (0 currently), we ignore the EID. If we still have not found differences, we then examine the SubID. Here both 0 and -1 are currently valid representation of null and considered equal.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DeviceInfo Class
DeviceInfo Members
Overload List

Send Feedback