UITestControlCollection.Insert 方法

UITestControl 插入至 UITestControlCollection 中指定的索引位置。

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

語法

'宣告
Public Sub Insert ( _
    index As Integer, _
    control As UITestControl _
)
public void Insert(
    int index,
    UITestControl control
)
public:
void Insert(
    int index, 
    UITestControl^ control
)
member Insert : 
        index:int * 
        control:UITestControl -> unit 
public function Insert(
    index : int, 
    control : UITestControl
)

參數

  • index
    型別:System.Int32
    應該插入 control 之以零起始的索引。

.NET Framework 安全性

請參閱

參考

UITestControlCollection 類別

Microsoft.VisualStudio.TestTools.UITesting 命名空間