CubeHierarchyCollection.IndexOf Method

Definition

Overloads

IndexOf(CubeHierarchy)

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

IndexOf(String)

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

IndexOf(CubeHierarchy)

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

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

Parameters

item
CubeHierarchy

The CubeHierarchy to locate in the collection.

Returns

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

Applies to

IndexOf(String)

Searches for a CubeHierarchy 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 CubeHierarchy to locate in the collection.

Returns

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

Applies to