共用方式為


IndexOf 方法 (Action)

Gets the index of a specified Action.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Function IndexOf ( _
    item As Action _
) As Integer
'用途
Dim instance As ActionCollection
Dim item As Action
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    Action item
)
public:
int IndexOf(
    Action^ item
)
member IndexOf : 
        item:Action -> int 
public function IndexOf(
    item : Action
) : int

參數

傳回值

型別:System. . :: . .Int32
The zero-based index of the Action if the object is found; otherwise, -1.