CubeHierarchyCollection.IndexOf Method (String)


Updated: May 24, 2016

Gets the index of a CubeHierarchy, with the specified identifier.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

public int IndexOf(
	string hierarchyId


Type: System.String

The identifier of a CubeHierarchy to be located.

Return Value

Type: System.Int32

The zero-based index of the CubeHierarchy specified by hierarchyID if the object is found; otherwise, -1.

Return to top