ComparisonSettings Enumeration
Collapse the table of content
Expand the table of content

ComparisonSettings Enumeration

Describes the object comparison modes that can be used with CompareTo. Note that these values may be combined.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
Public Enum ComparisonSettings
public enum ComparisonSettings
__value public enum ComparisonSettings
enum ComparisonSettings


Member name Description Value
IgnoreCase A mode that compares string values in a case-insensitive manner. This applies 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. 16
IgnoreClass A mode that assumes that the objects being compared are instances of the same class. Consequently, this value causes comparison of instance-related information only. Use this flag to optimize performance. If the objects are not of the same class, the results are undefined. 8
IgnoreDefaultValues A mode that ignores the default values of properties. This value is only meaningful when comparing classes. 4
IgnoreFlavor A mode that ignores qualifier flavors. This flag still takes qualifier values into account, but ignores flavor distinctions such as propagation rules and override restrictions. 32
IgnoreObjectSource A mode that ignores the source of the objects, namely the server and the namespace they came from, in comparison to other objects. 2
IgnoreQualifiers A mode that compares the objects, ignoring qualifiers. 1
IncludeAll A mode that compares all elements of the compared objects. 0


Namespace: System.Management

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

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

See Also

System.Management Namespace

© 2015 Microsoft