Share via


MetricThresholdValueComparison Enumeration

Applies To: Windows 8.1

Specifies how AXE compares metric values.

Namespace: Microsoft.Assessments.Runtime
Assembly: Microsoft.Assessments.Core (in Microsoft.Assessments.Core.dll)

Usage

'Usage
Dim instance As MetricThresholdValueComparison

Syntax

'Declaration
Public Enumeration MetricThresholdValueComparison
public enum MetricThresholdValueComparison
public enum class MetricThresholdValueComparison
public enum MetricThresholdValueComparison
public enum MetricThresholdValueComparison

Members

Member name Description
Absolute Indicates that the MetricThreshold target is not used and the MetricValue is compared directly with the MetricThresholdValue. This is only valid for floating point and integral numeric types.
ContainsStringIsFail Indicates that the MetricValueis considered to fail if the string contains the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings.
ContainsStringIsPass Indicates that the MetricValueis considered to pass if the string contains the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings.
FalseIsPass Indicates that the MetricValueis considered to pass if its Boolean value is false. This is valid for Boolean, numeric and string types. For integral numeric types, zero is considered false, and non-zero is true. For floating point types, zero and NaN are considered false, and all other values true. For string types, false is assumed if the string is null, empty (zero length) or consists of all white space characters.
IsStringIsFail Indicates that the MetricValue is considered to fail if the MetricValue is a string or is not equivalent to the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings. This is only valid for string types.
IsStringIsPass Indicates that the MetricValue is considered to pass if the MetricValue is a string or is not equivalent to the MetricThresholdValue. String comparison is ordinal, insensitive to case, and ignores leading and trailing spaces in both strings. This is only valid for string types.
None No comparison method specified.
Offset Indicates that the MetricThresholdValueis treated as an offset from the MetricThreshold target value. This is only valid for floating point and integral numeric types.
Percent Indicates that the MetricThresholdValueis treated as a percent from the MetricThreshold target value. This is only valid for floating point and integral numeric types.
RegularExpressionMatchIsFail Indicates that the MetricValueis considered to fail if the MetricValue is a string matched by the regular expression in the MetricThresholdValue. This is only valid for string types.
RegularExpressionMatchIsPass Indicates that the MetricValueis considered to pass if the MetricValue is a string matched by the regular expression in the MetricThresholdValue. This is only valid for string types.
TrueIsPass Indicates that the MetricValueis considered to pass if its Boolean value is true. This is valid for Boolean, numeric and string types. For integral numeric types, zero is considered false, and non-zero is true. For floating point types, zero and NaN are considered false, and all other values true. For string types, false is assumed if the string is null, empty (zero length) or consists of all white space characters.

Platforms

Development Platforms

Windows 8.1

See Also

Reference

Microsoft.Assessments.Runtime Namespace