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

Parameters

metricSet  MetricSet
The metric set.
structureId  Guid
The ID for the new analysis structure.
uniqueNamesMap  IDictionaryString, 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

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