Open this page in the API Guide

IMetricSetService.ReplaceAnalysisStructure 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 (25.1.0.1000)
Syntax
MetricSet ReplaceAnalysisStructure(
	MetricSet metricSet,
	Guid structureId,
	IDictionary<string, string> uniqueNamesMap
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSets.MetricSet
The metric set.
structureId
Type: System.Guid
The ID for the new analysis structure.
uniqueNamesMap
Type: System.Collections.Generic.IDictionary<String, 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 null.
ArgumentExceptionuniqueNamesMap is null or empty or uniqueNamesMap contains key or value that is null 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