MetricSetReplaceElement 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 (26.2.0.1000)
Syntax
public virtual AnalysisElementUsage ReplaceElement(
	AnalysisElementUsage originalElement,
	IAnalysisElement analysisElement
)

Parameters

originalElement  AnalysisElementUsage
The target usage element.
analysisElement  IAnalysisElement
The source analysis element.

Return Value

AnalysisElementUsage
The new usage element.
Exceptions
ExceptionCondition
ArgumentNullExceptionoriginalElement or analysisElement is .
ArgumentExceptionoriginalElement or analysisElement do not belong to the current instance or originalElement and analysisElement have incompatible categories.
See Also