A Sandcastle Documented Class Library

# MeasureExpression DefineHierarchyPlaceholder 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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public HierarchyPlaceholder DefineHierarchyPlaceholder(
    	string caption,
    	HierarchyUsage hierarchyUsage,
    	MetricSetUsage usage
    )

    Public Function DefineHierarchyPlaceholder (
    	caption As String,
    	hierarchyUsage As HierarchyUsage,
    	usage As MetricSetUsage
    ) As HierarchyPlaceholder

    public:
    HierarchyPlaceholder^ DefineHierarchyPlaceholder(
    	String^ caption,
    	HierarchyUsage^ hierarchyUsage,
    	MetricSetUsage^ usage
    )

    member DefineHierarchyPlaceholder :
            caption : string *
            hierarchyUsage : HierarchyUsage *
            usage : MetricSetUsage -> HierarchyPlaceholder

#### Parameters

caption
  Type: System
  String
  The caption used in the statement.
hierarchyUsage
  Type: Dundas.BI.Entities.MetricSets
  HierarchyUsage
  The hierarchy usage element.
usage
  Type: Dundas.BI.Entities.MetricSets
  MetricSetUsage
  The dependency metric set usage information.

#### Return Value

Type: HierarchyPlaceholder
The hierarchy placeholder.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | hierarchyUsage or usage is .
ArgumentException | caption is or Empty or already in use. or usage is invalid because of name or referenced metric set.
InvalidOperationException | usage information must be specified only for FormulaMetricSet objects.

See Also

#### Reference

MeasureExpression Class
DefineHierarchyPlaceholder Overload
Dundas.BI.Entities.MetricSets Namespace