HierarchyCollection.Add HierarchyCollection.Add HierarchyCollection.Add Method

Definition

Creates and adds a Hierarchy to the collection.

Overloads

Add() Add() Add()

Creates and adds a Hierarchy to the end of the collection.

Add(Hierarchy) Add(Hierarchy) Add(Hierarchy)

Adds a Hierarchy to the end of the collection.

Add(String) Add(String) Add(String)

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

Add(String, Boolean) Add(String, Boolean) Add(String, Boolean)

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

Add(String, String) Add(String, String) Add(String, String)

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

Add() Add() Add()

Creates and adds a Hierarchy to the end of the collection.

public:
 Microsoft::AnalysisServices::Hierarchy ^ Add();
public Microsoft.AnalysisServices.Hierarchy Add ();
Public Function Add () As Hierarchy
Returns

Add(Hierarchy) Add(Hierarchy) Add(Hierarchy)

Adds a Hierarchy to the end of the collection.

public:
 int Add(Microsoft::AnalysisServices::Hierarchy ^ item);
public int Add (Microsoft.AnalysisServices.Hierarchy item);
Public Function Add (item As Hierarchy) As Integer
Parameters
item
Hierarchy Hierarchy Hierarchy

The Hierarchy to be added.

Returns

The zero-based index at which the Hierarchy has been added.

Add(String) Add(String) Add(String)

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

public:
 Microsoft::AnalysisServices::Hierarchy ^ Add(System::String ^ name);
public Microsoft.AnalysisServices.Hierarchy Add (string name);
Public Function Add (name As String) As Hierarchy
Parameters
name
String String String

The identifier of the Hierarchy to be added.

Returns

The zero-based index at which the Hierarchy has been added.

Add(String, Boolean) Add(String, Boolean) Add(String, Boolean)

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

public:
 Microsoft::AnalysisServices::Hierarchy ^ Add(System::String ^ name, bool updateDependents);
public Microsoft.AnalysisServices.Hierarchy Add (string name, bool updateDependents);
Public Function Add (name As String, updateDependents As Boolean) As Hierarchy
Parameters
name
String String String

The name of the Hierarchy to be added.

updateDependents
Boolean Boolean Boolean

Indicates whether the dependents of the Hierarchy should be updated.

Returns

Add(String, String) Add(String, String) Add(String, String)

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

public:
 Microsoft::AnalysisServices::Hierarchy ^ Add(System::String ^ name, System::String ^ id);
public Microsoft.AnalysisServices.Hierarchy Add (string name, string id);
Public Function Add (name As String, id As String) As Hierarchy
Parameters
name
String String String

The name of the Hierarchy to be added.

id
String String String

The identifier of the Hierarchy to be added.

Returns

The zero-based index at which the Hierarchy has been added.

Applies to