Required. This parameter is an
SWbemObject object. This is the object with which the first object is compared. The object must be a valid SWbemObject instance.
iFlags [in, optional]
Specifies the object characteristics to consider when comparing an object with other objects. You can use wbemComparisonFlagIncludeAll to consider all features (this is the default), or any combination of the following values.
Compares all properties, qualifiers, and flavors.
Causes the source of the objects, namely the server and the namespace they came from, to be ignored in comparison to other objects.
Causes all qualifiers (including Key and Dynamic) to be ignored in comparison.
Causes default values of properties to be ignored. This flag is only meaningful when comparing classes.
Causes qualifier flavors to be ignored. This flag takes qualifier values into account, but ignores flavor distinctions such as propagation rules and override restrictions.
Compares string values in a case-insensitive manner. This applies both to strings and to qualifier values. Property and qualifier names are always compared in a case-insensitive manner whether this flag is specified or not.
Instructs the system to assume that the objects being compared are instances of the same class. Consequently, this flag compares instance-related information only. Use this flag to optimize performance. If the objects are not of the same class, the results are undefined.
This method returns the Boolean value of TRUE if the objects match. It returns FALSE if the objects do not match.
After the completion of the
CompareTo_ method, the
Err object may contain one of the error codes in the following table.