CodeCatchClauseCollection.Insert(Int32, CodeCatchClause) Yöntem

Tanım

Belirtilen nesneyi belirtilen CodeCatchClause dizindeki koleksiyona ekler.

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)

Parametreler

index
Int32

Belirtilen nesnenin eklenmesi gereken sıfır tabanlı dizin.

value
CodeCatchClause

CodeCatchClause Eklenecek nesne.

Örnekler

Aşağıdaki örnekte bir nesnesi eklemek için yönteminin Insert nasıl kullanılacağı gösterilmektedirCodeCatchClause.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"))

Şunlara uygulanır

Ayrıca bkz.