TestActionResultCollection.IndexOf 方法 (Int32)
搜尋具有所指定動作 ID 的測試動作結果,並傳回該結果在整個集合中第一次出現的以零起始的索引。
命名空間: Microsoft.TeamFoundation.TestManagement.Client
組件: Microsoft.TeamFoundation.TestManagement.Client (在 Microsoft.TeamFoundation.TestManagement.Client.dll 中)
語法
'宣告
Public Function IndexOf ( _
actionId As Integer _
) As Integer
public int IndexOf(
int actionId
)
public:
int IndexOf(
int actionId
)
member IndexOf :
actionId:int -> int
public function IndexOf(
actionId : int
) : int
參數
actionId
類型:Int32想要之測試動作結果的動作 ID。
傳回值
類型:Int32
想要的測試動作結果在整個集合中第一次出現的以零起始的索引。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。