A Sandcastle Documented Class Library

# MeasureExpression DefineInputHierarchyParameter Method (String, String, String, HierarchyUsage, MetricSetUsage)

Defines an input hierarchy parameter for the current expression.

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 ParameterPlaceholder DefineInputHierarchyParameter(
    	string caption,
    	string parameterName,
    	string parameterDescription,
    	HierarchyUsage defaultHierarchy,
    	MetricSetUsage usage
    )

    Public Function DefineInputHierarchyParameter (
    	caption As String,
    	parameterName As String,
    	parameterDescription As String,
    	defaultHierarchy As HierarchyUsage,
    	usage As MetricSetUsage
    ) As ParameterPlaceholder

    public:
    ParameterPlaceholder^ DefineInputHierarchyParameter(
    	String^ caption,
    	String^ parameterName,
    	String^ parameterDescription,
    	HierarchyUsage^ defaultHierarchy,
    	MetricSetUsage^ usage
    )

    member DefineInputHierarchyParameter :
            caption : string *
            parameterName : string *
            parameterDescription : string *
            defaultHierarchy : HierarchyUsage *
            usage : MetricSetUsage -> ParameterPlaceholder

#### Parameters

caption
  Type: System
  String
  The parameter caption used in the statement.
parameterName
  Type: System
  String
  Name of the parameter.
parameterDescription
  Type: System
  String
  The parameter description.
defaultHierarchy
  Type: Dundas.BI.Entities.MetricSets
  HierarchyUsage
  The default hierarchy.
usage
  Type: Dundas.BI.Entities.MetricSets
  MetricSetUsage
  The dependency metric set usage information.

#### Return Value

Type: ParameterPlaceholder
The parameter placeholder.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | defaultHierarchy is .
ArgumentException | caption is or Empty or already in use.
InvalidOperationException | usage information must be specified only for FormulaMetricSet objects.

See Also

#### Reference

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