次の方法で共有


UITestControlCollection.Insert メソッド

UITestControlCollection 内の指定されたインデックス位置に、UITestControl を挿入します。

名前空間:  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 を挿入する位置の、0 から始まるインデックス番号。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

UITestControlCollection クラス

Microsoft.VisualStudio.TestTools.UITesting 名前空間