Compares the specified object to the result collection to determine whether it is of the same data type. Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

Visual Basic
Dim instance As ResultObjectsManager
Dim obj As Object
Dim returnValue As Integer

returnValue = instance.CompareTo(obj)

Syntax

Visual Basic
Public Function CompareTo ( _
		obj As Object _
) As Integer
C#
public int CompareTo (
		Object obj
)
C++
public:
virtual int CompareTo (
		Object^ obj
) sealed
J#
public final int CompareTo (
		Object obj
)
JScript
public final function CompareTo (
		obj : Object
) : int

Parameters

obj

[in] System.Object instance that represents the object to compare.

Return Value

A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:

Value

Description

<0

This instance is less than obj.

=0

This instance is equal to obj

>0

This instance is greater than obj.

Exceptions

Exception type Condition
ArgumentException

The obj parameter does not specify the same data type as the result collection.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also