Share via


PerspectiveHierarchyCollection.IndexOf Method

Definition

Overloads

IndexOf(PerspectiveHierarchy)

Searches for the specified PerspectiveHierarchy and returns the zero-based index of it in the collection.

IndexOf(String)

Searches for a PerspectiveHierarchy with the specified HierarchyID and returns the zero-based index of it in the collection.

IndexOf(PerspectiveHierarchy)

Searches for the specified PerspectiveHierarchy and returns the zero-based index of it in the collection.

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

Parameters

item
PerspectiveHierarchy

The PerspectiveHierarchy to locate in the collection.

Returns

The zero-based index of the PerspectiveHierarchy in the collection, if found; otherwise, -1.

Applies to

IndexOf(String)

Searches for a PerspectiveHierarchy with the specified HierarchyID and returns the zero-based index of it in the collection.

public int IndexOf (string hierarchyId);
override this.IndexOf : string -> int
Public Function IndexOf (hierarchyId As String) As Integer

Parameters

hierarchyId
String

The HierarchyID of the PerspectiveHierarchy to locate in the collection.

Returns

The zero-based index of the PerspectiveHierarchy in the collection, if found; otherwise, -1.

Applies to