Condividi tramite


PerspectiveHierarchyCollection.Add Method

Definition

Overloads

Add(PerspectiveHierarchy)

Adds the specified PerspectiveHierarchy to the end of the collection.

Add(String)

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

Add(PerspectiveHierarchy)

Adds the specified PerspectiveHierarchy to the end of the collection.

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

Parameters

Returns

The zero-based index at which the PerspectiveHierarchy 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 PerspectiveHierarchy is not valid in the collection.
  • The name of the specified PerspectiveHierarchy is not valid in the collection.
  • The compatibility-level of the specified PerspectiveHierarchy is not valid in the collection.

Applies to

Add(String)

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

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

Parameters

hierarchyId
String

The HierarchyID for the new PerspectiveHierarchy object.

Returns

The newly created PerspectiveHierarchy object.

Exceptions

The specified HierarchyID is not valid in the collection.

Applies to