IMetricSetServiceAddMeasure Method  | 
 
            Adds a 
MeasureUsage element to the given metric set and saves it.
            
 
    Namespace: 
   Dundas.BI.Entities.MetricSets
    Assembly:
   Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.3.0.1000)
SyntaxMeasureUsage AddMeasure(
	MetricSet metricSet,
	Guid parentId,
	string elementName,
	AggregatorFunctions aggregator
)
Function AddMeasure ( 
	metricSet As MetricSet,
	parentId As Guid,
	elementName As String,
	aggregator As AggregatorFunctions
) As MeasureUsage
MeasureUsage^ AddMeasure(
	MetricSet^ metricSet, 
	Guid parentId, 
	String^ elementName, 
	AggregatorFunctions aggregator
)
abstract AddMeasure : 
        metricSet : MetricSet * 
        parentId : Guid * 
        elementName : string * 
        aggregator : AggregatorFunctions -> MeasureUsage 
Parameters
- metricSet
 - Type: Dundas.BI.Entities.MetricSetsMetricSet
The MetricSet to add the element to. - parentId
 - Type: SystemGuid
The ID of the element parent structure. - elementName
 - Type: SystemString
The name of the element (column/measure/hierarchy) to add. - aggregator
 - Type: Dundas.BI.DataAggregatorFunctions
The element aggregator. 
Return Value
Type: 
MeasureUsageThe added usage element.
Exceptions
See Also