Freigeben über


CubeHierarchyCollection.Add Method

Definition

Overloads

Add(CubeHierarchy)

Adds the specified CubeHierarchy to the end of the collection.

Add(String)

Creates a new CubeHierarchy object using the specified HierarchyID, adds it to the end of the collection and returns the new CubeHierarchy created.

Add(String, Boolean)

Creates and adds a CubeHierarchy, with the specified heirarchy, to the end of the collection.

Add(CubeHierarchy)

Adds the specified CubeHierarchy to the end of the collection.

public int Add (Microsoft.AnalysisServices.CubeHierarchy item);
override this.Add : Microsoft.AnalysisServices.CubeHierarchy -> int
Public Function Add (item As CubeHierarchy) As Integer

Parameters

item
CubeHierarchy

The CubeHierarchy to be added.

Returns

The zero-based index at which the CubeHierarchy has been added to the collection.

Exceptions

  • The specified item is a null reference (Nothing in Visual Basic).
  • The specified item already esists in the collection.
  • The HierarchyID of the specified CubeHierarchy is not valid in the collection.
  • The name of the specified CubeHierarchy is not valid in the collection.
  • The compatibility-level of the specified CubeHierarchy is not valid in the collection.

Applies to

Add(String)

Creates a new CubeHierarchy object using the specified HierarchyID, adds it to the end of the collection and returns the new CubeHierarchy created.

public Microsoft.AnalysisServices.CubeHierarchy Add (string hierarchyId);
override this.Add : string -> Microsoft.AnalysisServices.CubeHierarchy
Public Function Add (hierarchyId As String) As CubeHierarchy

Parameters

hierarchyId
String

The HierarchyID for the new CubeHierarchy object.

Returns

The newly created CubeHierarchy object.

Exceptions

The specified HierarchyID is not valid in the collection.

Applies to

Add(String, Boolean)

Creates and adds a CubeHierarchy, with the specified heirarchy, to the end of the collection.

public Microsoft.AnalysisServices.CubeHierarchy Add (string hierarchyId, bool updateDependents);
override this.Add : string * bool -> Microsoft.AnalysisServices.CubeHierarchy
Public Function Add (hierarchyId As String, updateDependents As Boolean) As CubeHierarchy

Parameters

hierarchyId
String

The HierarchyID for the new CubeHierarchy object. It must be unique within the collection.

updateDependents
Boolean

Indicates whether the dependents of the CubeHierarchy should be updated.

Returns

The newly created CubeHierarchy object.

Exceptions

The specified HierarchyID is not valid in the collection.

Applies to