ModelComponentCollection.IndexOf 方法 (IModelComponent)
Searches for the specified item and returns its zero-based index within the collection.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Protected Function IndexOf ( _
item As IModelComponent _
) As Integer
'用途
Dim item As IModelComponent
Dim returnValue As Integer
returnValue = Me.IndexOf(item)
protected int IndexOf(
IModelComponent item
)
protected:
int IndexOf(
IModelComponent^ item
)
member IndexOf :
item:IModelComponent -> int
protected function IndexOf(
item : IModelComponent
) : int
參數
- item
型別:Microsoft.AnalysisServices.IModelComponent
The item to locate.
傳回值
型別:System.Int32
The zero-based index of the item in the collection, if found; otherwise, -1.