CodeCommentStatementCollection.Insert(Int32, CodeCommentStatement) Метод

Определение

Вставляет CodeCommentStatement объект в коллекцию по указанному индексу.

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)

Параметры

index
Int32

Отсчитываемый от нуля индекс, в который следует вставить элемент.

value
CodeCommentStatement

Объект для CodeCommentStatement вставки.

Примеры

В следующем примере показано, как использовать Insert метод для добавления CodeCommentStatement объекта в 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"))

Применяется к

См. также раздел