共用方式為


Add 方法 (String, Boolean)

Creates and adds a Hierarchy, with the specified name, to the end of the collection.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Function Add ( _
    name As String, _
    updateDependents As Boolean _
) As Hierarchy
'用途
Dim instance As HierarchyCollection
Dim name As String
Dim updateDependents As Boolean
Dim returnValue As Hierarchy

returnValue = instance.Add(name, updateDependents)
public Hierarchy Add(
    string name,
    bool updateDependents
)
public:
Hierarchy^ Add(
    String^ name, 
    bool updateDependents
)
member Add : 
        name:string * 
        updateDependents:bool -> Hierarchy 
public function Add(
    name : String, 
    updateDependents : boolean
) : Hierarchy

參數

傳回值

型別:Microsoft.AnalysisServices. . :: . .Hierarchy
A new, empty Hierarchy.