CubeHierarchyCollection.Add Method (String, Boolean)
Creates and adds a CubeHierarchy, with the specified identifier, to the end of the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
'Declaration
Public Function Add ( _
hierarchyId As String, _
updateDependents As Boolean _
) As CubeHierarchy
'Usage
Dim instance As CubeHierarchyCollection
Dim hierarchyId As String
Dim updateDependents As Boolean
Dim returnValue As CubeHierarchy
returnValue = instance.Add(hierarchyId, _
updateDependents)
public CubeHierarchy Add(
string hierarchyId,
bool updateDependents
)
public:
CubeHierarchy^ Add(
String^ hierarchyId,
bool updateDependents
)
member Add :
hierarchyId:string *
updateDependents:bool -> CubeHierarchy
public function Add(
hierarchyId : String,
updateDependents : boolean
) : CubeHierarchy
Parameters
- hierarchyId
Type: System.String
The CubeHierarchy to be added.
- updateDependents
Type: System.Boolean
Indicates whether the dependents of the CubeHierarchy should be updated.
Return Value
Type: Microsoft.AnalysisServices.CubeHierarchy
A new, empty CubeHierarchy.