IMetricSetServiceReplaceElement Method (MetricSet, String, Guid, String, String)

Replaces the specified element with a new hierarchy level from a specified structure.

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,
	Guid parentId,
	string elementUniqueName,
	string levelUniqueName
)

Parameters

metricSet
Type: Dundas.BI.Entities.MetricSetsMetricSet
The metric set.
replaceElementUniqueName
Type: SystemString
The unique name of the element to be replaced.
parentId
Type: SystemGuid
The parent ID for the new element.
elementUniqueName
Type: SystemString
The name of the new hierarchy element.
levelUniqueName
Type: SystemString
The unique name of hierarchy level to be used as default level.
Exceptions
ExceptionCondition
ArgumentNullExceptionmetricSet is .
ArgumentExceptionreplaceElementUniqueName or elementUniqueName could not be found or parentId is not a valid GUID.
NotFoundExceptionThe structure with the specified parentId does not exist.
InvalidSessionExceptionThe caller context is not associated with a valid session.
InvalidDynamicHierarchyOperationExceptionThe operation is not supported for dynamic hierarchies.
See Also