IndexOf Method (String)
Collapse the table of content
Expand the table of content

MeasureGroupDimensionCollection.IndexOf Method (String)


Applies To: SQL Server (starting with 2016)

Gets the index of a MeasureGroupDimension that has the specified identifier.

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

public int IndexOf(
	string cubeDimensionId


Type: System.String

The identifier of a MeasureGroupDimension to locate.

Return Value

Type: System.Int32

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

Return to top
© 2015 Microsoft