IMetricSetServiceAddElement Method |
Namespace:
Dundas.BI.Entities.MetricSets
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (9.0.0.1000)
SyntaxAnalysisElementUsage AddElement(
MetricSet metricSet,
Guid parentId,
string elementName,
PlacementPosition placement,
string levelUniqueName
)
Function AddElement (
metricSet As MetricSet,
parentId As Guid,
elementName As String,
placement As PlacementPosition,
levelUniqueName As String
) As AnalysisElementUsage
AnalysisElementUsage^ AddElement(
MetricSet^ metricSet,
Guid parentId,
String^ elementName,
PlacementPosition placement,
String^ levelUniqueName
)
abstract AddElement :
metricSet : MetricSet *
parentId : Guid *
elementName : string *
placement : PlacementPosition *
levelUniqueName : string -> AnalysisElementUsage
Parameters
- metricSet
- Type: Dundas.BI.Entities.MetricSetsMetricSet
The MetricSet to add the element to. - parentId
- Type: SystemGuid
The ID of the element parent structure. - elementName
- Type: SystemString
The name of the element (column/measure/hierarchy) to add. - placement
- Type: Dundas.BI.Entities.MetricSetsPlacementPosition
The element placement position. - levelUniqueName
- Type: SystemString
The optional unique name for hierarchy level, when the specified element is a hierarchy.
Return Value
Type:
AnalysisElementUsageThe added usage element.
Exceptions| Exception | Condition |
|---|
| InvalidOperationException | The metric set is not checked out to the caller
or
the underlying IAnalysisStructure does not support the current operation, either because it is not auto-generated
or
joining to the structure specified by parentId is not supported. |
| ArgumentNullException | metricSet is . |
| ArgumentException | parentId is Empty
or
elementName is not a valid string
or
parentId references a structure that could not be found or that is invalid for the current operation
or
placement is not a PlacementPosition valid value.
|
| NotFoundException | The structure with the specified parentId does not exist. |
| InvalidSessionException | The caller context is not associated with a valid session. |
| InvalidDynamicHierarchyOperationException | The operation is not supported for dynamic hierarchies. |
See Also