Open this page in the API Guide

IMetricSetService.ReplaceElement 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 (25.1.0.1000)
Syntax
void ReplaceElement(
	MetricSet metricSet,
	string replaceElementUniqueName,
	string elementUniqueName
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSets.MetricSet
The metric set.
replaceElementUniqueName
Type: System.String
The unique name of the element to be replaced.
elementUniqueName
Type: System.String
The unique name of the element to be used as replacement.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is null.
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