ActionList.FindIndex 方法
傳回擁有指定識別碼之動作的索引。
命名空間: Microsoft.VisualStudio.TestTools.UITest.Common
組件: Microsoft.VisualStudio.TestTools.UITest.Common (在 Microsoft.VisualStudio.TestTools.UITest.Common.dll 中)
語法
'宣告
Public Function FindIndex ( _
id As Long _
) As Integer
public int FindIndex(
long id
)
public:
int FindIndex(
long long id
)
member FindIndex :
id:int64 -> int
public function FindIndex(
id : long
) : int
參數
- id
型別:System.Int64
Int64 , 表示要搜尋的識別碼。
傳回值
型別:System.Int32
如果找到則為動作的索引,否則為 -1。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。