IMetricSetServiceReplaceElement Method (MetricSet, String, String)

Replace an existing metric set element with the another metric set element, or an underlying IAnalysisStructure analysis element.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.4.0.1000)
Syntax
void ReplaceElement(
	MetricSet metricSet,
	string replaceElementUniqueName,
	string elementUniqueName
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSetsMetricSet
The metric set.
replaceElementUniqueName
Type: SystemString
The unique name of the element to be replaced.
elementUniqueName
Type: SystemString
The unique name of the element to be used as replacement.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is .
ArgumentExceptionreplaceElementUniqueName or elementUniqueName could not be found or are incompatible with a replacement operation.
InvalidSessionExceptionThe caller context is not associated with a valid session.
InvalidDynamicHierarchyOperationExceptionThe operation is not supported for dynamic hierarchies.
See Also