ModelComponentCollection.IndexOf Method (IModelComponent)
Applies To: SQL Server (starting with 2016)
Searches for the specified item and returns its zero-based index within the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)
Syntax
protected int IndexOf(
IModelComponent item
)
protected:
int IndexOf(
IModelComponent^ item
)
member IndexOf :
item:IModelComponent -> int
Protected Function IndexOf (
item As IModelComponent
) As Integer
Parameters
item
Type: Microsoft.AnalysisServices.IModelComponentThe item to locate.
Return Value
Type: System.Int32
The zero-based index of the item in the collection, if found; otherwise, -1.
See Also
IndexOf Overload
ModelComponentCollection Class
Microsoft.AnalysisServices Namespace
Return to top