DataItemCollection.IndexOf Method (DataItem)

 

Applies To: SQL Server 2016 Preview

Gets the index of a specified DataItem.

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

Syntax

public int IndexOf(
    DataItem item
)
public:
int IndexOf(
    DataItem^ item
)
member IndexOf : 
        item:DataItem -> int
Public Function IndexOf (
    item As DataItem
) As Integer

Parameters

Return Value

Type: System.Int32

The zero-based index of the DataItem if the object is found; otherwise, -1.

See Also

DataItemCollection Class
Microsoft.AnalysisServices Namespace

Return to top