Open this page in the API Guide

IMetricSetService.AddStateGroup Method

Adds the state group to the metric set and then saves the metric set.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
StateGroup AddStateGroup(
	MetricSet metricSet,
	string measureUniqueName,
	string stateGroupName,
	string stateGroupDescription
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSets.MetricSet
The metric set.
measureUniqueName
Type: System.String
The unique name of the measure the state group is attached to.
stateGroupName
Type: System.String
Name of the state group.
stateGroupDescription
Type: System.String
The state group description.

Return Value

Type: StateGroup
The newly added state group.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is null.
ArgumentExceptionmeasureUniqueName does not reference a valid measure.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also