CodeCommentStatementCollection.Insert(Int32, CodeCommentStatement) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Insere um CodeCommentStatement objeto na coleção no í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
O índice baseado em zero onde o item deve ser inserido.
- value
- CodeCommentStatement
O CodeCommentStatement objeto a inserir.
Exemplos
O exemplo seguinte demonstra como usar o Insert método para adicionar um CodeCommentStatement objeto ao 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"))