ManagementBaseObject.CompareTo Method (ManagementBaseObject, ComparisonSettings)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Compares this object to another, based on specified options.

Namespace:   System.Management
Assembly:  System.Management (in System.Management.dll)

public bool CompareTo(
	ManagementBaseObject otherObject,
	ComparisonSettings settings
)

Parameters

otherObject
Type: System.Management.ManagementBaseObject

The object to which to compare this object.

settings
Type: System.Management.ComparisonSettings

Options on how to compare the objects.

Return Value

Type: System.Boolean

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

Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.

.NET Framework
Available since 1.1
Return to top
Show: