The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ManagementBaseObject.CompareTo Method

Compares this object to another, based on specified options.

[Visual Basic]
Public Function CompareTo( _
   ByVal otherObject As ManagementBaseObject, _
   ByVal settings As ComparisonSettings _
) As Boolean
public bool CompareTo(
 ManagementBaseObject otherObject,
 ComparisonSettings settings
public: bool CompareTo(
 ManagementBaseObject* otherObject,
 ComparisonSettings settings
public function CompareTo(
   otherObject : ManagementBaseObject,
 settings : ComparisonSettings
) : Boolean;


The object to which to compare this object.
Options on how to compare the objects.

Return Value

true if the objects compared are equal according to the given options; otherwise, false.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

ManagementBaseObject Class | ManagementBaseObject Members | System.Management Namespace