共用方式為


UITestControlCollection.IndexOf 方法

命名空間:  Microsoft.VisualStudio.TestTools.UITesting
組件:   Microsoft.VisualStudio.TestTools.UITesting (在 Microsoft.VisualStudio.TestTools.UITesting.dll 中)
  Microsoft.VisualStudio.TestTools.WindowsStore.UITesting (在 Microsoft.VisualStudio.TestTools.WindowsStore.UITesting.dll 中)

語法

'宣告
Public Function IndexOf ( _
    control As UITestControl _
) As Integer
public int IndexOf(
    UITestControl control
)
public:
int IndexOf(
    UITestControl^ control
)
member IndexOf : 
        control:UITestControl -> int
public function IndexOf(
    control : UITestControl
) : int

參數

傳回值

類型:Int32

.NET Framework 安全性

請參閱

參考

UITestControlCollection 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間