CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) メソッド

定義

指定した CodeCatchClause オブジェクトをコレクション内の指定したインデックス位置に挿入します。

public:
 void Insert(int index, System::CodeDom::CodeCatchClause ^ value);
public void Insert(int index, System.CodeDom.CodeCatchClause value);
member this.Insert : int * System.CodeDom.CodeCatchClause -> unit
Public Sub Insert (index As Integer, value As CodeCatchClause)

パラメーター

index
Int32

指定したオブジェクトを挿入する 0 から始まるインデックス。

value
CodeCatchClause

挿入する CodeCatchClause オブジェクト。

次の例では、 Insert メソッドを使用して、 CodeCatchClause オブジェクトを CodeCatchClauseCollectionに追加する方法を示します。

// Inserts a CodeCatchClause at index 0 of the collection.
collection.Insert( 0, new CodeCatchClause("e") );
' Inserts a CodeCatchClause at index 0 of the collection.
collection.Insert(0, New CodeCatchClause("e"))

適用対象

こちらもご覧ください