QualityRule Property (HistoryQueryResult)
- Last UpdatedAug 21, 2026
- 1 minute read
Gets or sets an enumeration that specifies whether values with certain characteristics are explicitly excluded from consideration by data retrieval.
'Declaration
Public Property QualityRule As String
'Usage
Dim instance As HistoryQueryResult
Dim value As String
instance.QualityRule = value
value = instance.QualityRule
public string QualityRule {get; set;}
Property Value
Valid values are GOOD, EXTENDED, or OPTIMISTIC.This parameter will override the setting of the QualityRule system parameter.
A quality rule of GOOD means that data values with doubtful (64) OPC quality will not be used in the retrieval calculations and will be ignored. Values with bad QualityDetail indicate gaps in the data.
A quality rule of EXTENDED means that data values with both good and doubtful OPC quality will be used in the retrieval calculations. Values with bad QualityDetail indicate gaps in the data.
A quality rule of OPTIMISTIC means that calculations that include some good and some NULL values will not cause the overall calculations to return NULL.
You can apply wwQualityRule to all retrieval modes.