Dimension.CreateDimensionFromHierarchy Method
Converts a Hierarchy object into a Dimension object.
Namespace: Microsoft.PerformancePoint.Scorecards
Assembly: Microsoft.PerformancePoint.Scorecards.Client (in Microsoft.PerformancePoint.Scorecards.Client.dll)
Syntax
'Declaration
Public Shared Function CreateDimensionFromHierarchy ( _
hierarchy As Hierarchy, _
dimType As DimensionTypeEnum _
) As Dimension
'Usage
Dim hierarchy As Hierarchy
Dim dimType As DimensionTypeEnum
Dim returnValue As Dimension
returnValue = Dimension.CreateDimensionFromHierarchy(hierarchy, _
dimType)
public static Dimension CreateDimensionFromHierarchy(
Hierarchy hierarchy,
DimensionTypeEnum dimType
)
Parameters
hierarchy
Type: Microsoft.PerformancePoint.Scorecards.HierarchyThe hierarchy object to convert.
dimType
Type: Microsoft.PerformancePoint.Scorecards.DimensionTypeEnumThe type of dimension object to create.
Return Value
Type: Microsoft.PerformancePoint.Scorecards.Dimension
Remarks
This method should be used only when newer metadata calls result in Hierarchy objects, and code needs to be called that expects a Dimension object.