StateAddCondition Method (HierarchyUsage, ParameterToken, ComparisonOperator)

Adds a new HierarchyCondition to the internal condition collection.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
public HierarchyCondition AddCondition(
	HierarchyUsage hierarchy,
	ParameterToken token,
	ComparisonOperator comparisonOperator
)

Parameters

hierarchy
Type: Dundas.BI.Entities.MetricSetsHierarchyUsage
The hierarchy.
token
Type: Dundas.BI.Data.Parameters.TokensParameterToken
The target parameter token.
comparisonOperator
Type: Dundas.BI.Entities.MetricSetsComparisonOperator
The comparison operator.

Return Value

Type: HierarchyCondition
The newly added HierarchyCondition.
Exceptions
ExceptionCondition
ArgumentNullExceptionhierarchy or token is .
ArgumentExceptionhierarchy is not a time compatible hierarchy.
Remarks
Comparison operators other than equality are valid only for time compatible hierarchies.
See Also