CodeCommentStatementCollection.Insert(Int32, CodeCommentStatement) Método

Definición

Inserta un CodeCommentStatement objeto en la colección en el índice especificado.

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)

Parámetros

index
Int32

Índice de base cero donde se debe insertar el elemento.

value
CodeCommentStatement

Objeto CodeCommentStatement que se va a insertar.

Ejemplos

En el ejemplo siguiente se muestra cómo usar el Insert método para agregar un CodeCommentStatement objeto 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"))

Se aplica a

Consulte también