Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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.

Namespace:  System.Management
Assembly:  System.Management (in System.Management.dll)
[FlagsAttribute]
public enum class ComparisonSettings
Member nameDescription
IgnoreCaseA 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. Value: 16.
IgnoreClassA 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. Value: 8.
IgnoreDefaultValuesA mode that ignores the default values of properties. This value is only meaningful when comparing classes. Value: 4.
IgnoreFlavorA mode that ignores qualifier flavors. This flag still takes qualifier values into account, but ignores flavor distinctions such as propagation rules and override restrictions. Value: 32.
IgnoreObjectSourceA mode that ignores the source of the objects, namely the server and the namespace they came from, in comparison to other objects. Value: 2.
IgnoreQualifiersA mode that compares the objects, ignoring qualifiers. Value: 1.
IncludeAllA mode that compares all elements of the compared objects. Value: 0.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.