A Sandcastle Documented Class Library

# MetricSet AddContextualMeasure Method

Add a new contextual measure. The user is responsible for entering contextual measure data.

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 MeasureUsage AddContextualMeasure(
    	string name,
    	string description
    )

    Public Function AddContextualMeasure (
    	name As String,
    	description As String
    ) As MeasureUsage

    public:
    MeasureUsage^ AddContextualMeasure(
    	String^ name,
    	String^ description
    )

    member AddContextualMeasure :
            name : string *
            description : string -> MeasureUsage

#### Parameters

name
  Type: System
  String
  The measure name.
description
  Type: System
  String
  The measure description.

#### Return Value

Type: MeasureUsage
The measure usage.
Exceptions

Exception | Condition
--- | ---
InvalidOperationException | The current operation is not supported when the metric set returns raw data or the current instance is a FormulaMetricSet which do not support contextual measures.

See Also

#### Reference

MetricSet Class
Dundas.BI.Entities.MetricSets Namespace