MeasureExpressionDefineHierarchyPlaceholder Method (String, HierarchyUsage, MetricSetUsage)

Defines a hierarchy placeholder for the current expression, using a specific instance object for the metric set.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.2.0.1000)
Syntax
public HierarchyPlaceholder DefineHierarchyPlaceholder(
	string caption,
	HierarchyUsage hierarchyUsage,
	MetricSetUsage usage
)

Parameters

caption
Type: SystemString
The caption used in the statement.
hierarchyUsage
Type: Dundas.BI.Entities.MetricSetsHierarchyUsage
The hierarchy usage element.
usage
Type: Dundas.BI.Entities.MetricSetsMetricSetUsage
The dependency metric set usage information.

Return Value

Type: HierarchyPlaceholder
The hierarchy placeholder.
Exceptions
ExceptionCondition
ArgumentNullExceptionhierarchyUsage or usage is .
ArgumentException

caption is or Empty or already in use.

or

usage is invalid because of name or referenced metric set.

InvalidOperationExceptionusage information must be specified only for FormulaMetricSet objects.
See Also