CodeCommentStatementCollection.Insert(Int32, CodeCommentStatement) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Objektum beszúrása CodeCommentStatement a gyűjteménybe a megadott indexen.
public:
void Insert(int index, System::CodeDom::CodeCommentStatement ^ value);
public void Insert(int index, System.CodeDom.CodeCommentStatement value);
member this.Insert : int * System.CodeDom.CodeCommentStatement -> unit
Public Sub Insert (index As Integer, value As CodeCommentStatement)
Paraméterek
- index
- Int32
A nulla alapú index, ahová az elemet be kell szúrni.
- value
- CodeCommentStatement
A CodeCommentStatement beszúrni kívánt objektum.
Példák
Az alábbi példa bemutatja, hogyan adhat hozzá objektumot Insert a CodeCommentStatement metódussal a CodeCommentStatementCollection.
// Inserts a CodeCommentStatement at index 0 of the collection.
collection.Insert( 0, new CodeCommentStatement("Test comment") );
' Inserts a CodeCommentStatement at index 0 of the collection.
collection.Insert(0, New CodeCommentStatement("Test comment"))