IMetricSetServiceReplaceAnalysisStructure Method

Replaces the analysis structure in the metric set.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
MetricSet ReplaceAnalysisStructure(
	MetricSet metricSet,
	Guid structureId,
	IDictionary<string, string> uniqueNamesMap
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSetsMetricSet
The metric set.
structureId
Type: SystemGuid
The ID for the new analysis structure.
uniqueNamesMap
Type: System.Collections.GenericIDictionaryString, String
The unique names map. Provide map between unique names of replaced analysis element in source analysis structure and replacing analysis element in target analysis structure.

Return Value

Type: MetricSet
The updated metric set.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet or uniqueNamesMap is .
ArgumentExceptionuniqueNamesMap is or empty or uniqueNamesMap contains key or value that is or Empty or metricSet has hierarchy-based measures.
InvalidOperationException The replacement operation cannot be completed, as not all metric set usage elements have corresponding replacements.
InvalidMetricSetSourceExceptionThe structureId references a structure that cannot be used to generate a metric set.
See Also