Open this page in the API Guide

FormulaMetricSet.ReplaceElement Method

Replaces the original usage element with the analysis element, if the categories are compatible. The target element is removed.

Namespace:  Dundas.BI.Entities.MetricSets
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
public override AnalysisElementUsage ReplaceElement(
	AnalysisElementUsage originalElement,
	IAnalysisElement analysisElement
)

Parameters

originalElement
Type: Dundas.BI.Entities.MetricSets.AnalysisElementUsage
The target usage element.
analysisElement
Type: Dundas.BI.Data.Metadata.IAnalysisElement
The source analysis element.

Return Value

Type: AnalysisElementUsage
The new usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptionoriginalElement or analysisElement is null.
ArgumentException

originalElement or analysisElement do not belong to the current instance

or

originalElement and analysisElement have incompatible categories.

See Also