WbemComparisonFlagEnum Enumeration

The WbemComparisonFlagEnum constants define the settings for object comparison and are used by SWbemObject.CompareTo_.

The WMI scripting type library, wbemdisp.tlb, defines these constants. Visual Basic applications can access this library; script languages must use the value of the constant directly, unless they use the Windows Script Host (WSH) XML file format. For more information, see Using the WMI Scripting Type Library.

Syntax

typedef enum WbemComparisonFlagEnum {
  wbemComparisonFlagIncludeAll,
  wbemComparisonFlagIgnoreQualifiers,
  wbemComparisonFlagIgnoreObjectSource,
  wbemComparisonFlagIgnoreDefaultValues,
  wbemComparisonFlagIgnoreClass,
  wbemComparisonFlagIgnoreCase,
  wbemComparisonFlagIgnoreFlavor
} ;

Constants

wbemComparisonFlagIncludeAll Used to compare all properties, qualifiers, and flavors.
wbemComparisonFlagIgnoreQualifiers Ignores all qualifiers (including Key and Dynamic) in comparison.
wbemComparisonFlagIgnoreObjectSource Ignores the source of the objects, namely the server and the namespace they came from, in comparison to other objects.
wbemComparisonFlagIgnoreDefaultValues Ignores default values of properties (only meaningful when comparing classes).
wbemComparisonFlagIgnoreClass Instructs the system to assume that the objects being compared are instances of the same class. Consequently, this constant compares instance-related information only. Use to optimize performance. If the objects are not of the same class, the results will be undefined.
wbemComparisonFlagIgnoreCase 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 constant is specified or not.
wbemComparisonFlagIgnoreFlavor Ignore qualifier flavors. This constant still takes qualifier values into account, but ignores flavor distinctions such as propagation rules and override restrictions.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Header wbemdisp.h

See Also

Scripting API Constants