ComparisonSettings Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes the object comparison modes that can be used with CompareTo(ManagementBaseObject, ComparisonSettings). Note that these values may be combined.
This enumeration supports a bitwise combination of its member values.
public enum class ComparisonSettings
[System.Flags]
public enum ComparisonSettings
[<System.Flags>]
type ComparisonSettings =
Public Enum ComparisonSettings
- Inheritance
- Attributes
Fields
IgnoreCase | 16 | 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. Value: 16. |
IgnoreClass | 8 | 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. Value: 8. |
IgnoreDefaultValues | 4 | A mode that ignores the default values of properties. This value is only meaningful when comparing classes. Value: 4. |
IgnoreFlavor | 32 | 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. Value: 32. |
IgnoreObjectSource | 2 | A mode that ignores the source of the objects, namely the server and the namespace they came from, in comparison to other objects. Value: 2. |
IgnoreQualifiers | 1 | A mode that compares the objects, ignoring qualifiers. Value: 1. |
IncludeAll | 0 | A mode that compares all elements of the compared objects. Value: 0. |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈