Aracılığıyla paylaş


PerspectiveHierarchyCollection.Insert Method

Definition

Overloads

Insert(Int32, PerspectiveHierarchy)

Inserts the specified PerspectiveHierarchy to the collection at the specified index.

Insert(Int32, String)

Creates a new PerspectiveHierarchy object using the specified HierarchyID, inserts it to the collection at the specified index and returns the new PerspectiveHierarchy created.

Insert(Int32, PerspectiveHierarchy)

Inserts the specified PerspectiveHierarchy to the collection at the specified index.

public void Insert (int index, Microsoft.AnalysisServices.PerspectiveHierarchy item);
override this.Insert : int * Microsoft.AnalysisServices.PerspectiveHierarchy -> unit
Public Sub Insert (index As Integer, item As PerspectiveHierarchy)

Parameters

index
Int32

The zero-based index at which the PerspectiveHierarchy is inserted.

item
PerspectiveHierarchy

The PerspectiveHierarchy to be inserted.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

  • 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 compatibility-level of the specified PerspectiveHierarchy is not valid in the collection.

Applies to

Insert(Int32, String)

Creates a new PerspectiveHierarchy object using the specified HierarchyID, inserts it to the collection at the specified index and returns the new PerspectiveHierarchy created.

public Microsoft.AnalysisServices.PerspectiveHierarchy Insert (int index, string hierarchyId);
override this.Insert : int * string -> Microsoft.AnalysisServices.PerspectiveHierarchy
Public Function Insert (index As Integer, hierarchyId As String) As PerspectiveHierarchy

Parameters

index
Int32

The zero-based index at which the PerspectiveHierarchy is inserted.

hierarchyId
String

The HierarchyID for the new PerspectiveHierarchy object.

Returns

The newly created PerspectiveHierarchy object.

Exceptions

The specified index is not a valid value (less than zero or bigger then the total number of elements).

The specified HierarchyID is not valid in the collection.

Applies to