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

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 (26.2.0.1000)
Syntax
void ReplaceElement(
	MetricSet metricSet,
	string replaceElementUniqueName,
	Guid parentId,
	string elementUniqueName,
	string levelUniqueName
)

Parameters

metricSet  MetricSet
The metric set.
replaceElementUniqueName  String
The unique name of the element to be replaced.
parentId  Guid
The parent ID for the new element.
elementUniqueName  String
The name of the new hierarchy element.
levelUniqueName  String
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