将 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 的位置的零始索引。
- control
 类型:Microsoft.VisualStudio.TestTools.UITesting.UITestControl
 要插入的 UITestControl。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。