FormulaMetricSetReplaceElement 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 (24.4.0.1000)
Syntax
public override AnalysisElementUsage ReplaceElement(
	AnalysisElementUsage originalElement,
	IAnalysisElement analysisElement
)

Parameters

originalElement
Type: Dundas.BI.Entities.MetricSetsAnalysisElementUsage
The target usage element.
analysisElement
Type: Dundas.BI.Data.MetadataIAnalysisElement
The source analysis element.

Return Value

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

originalElement or analysisElement do not belong to the current instance

or

originalElement and analysisElement have incompatible categories.

See Also