Partilhar via


CodeTypeReferenceCollection.Insert(Int32, CodeTypeReference) Método

Definição

Insere um CodeTypeReference na coleção no índice especificado.

public:
 void Insert(int index, System::CodeDom::CodeTypeReference ^ value);
public void Insert (int index, System.CodeDom.CodeTypeReference value);
member this.Insert : int * System.CodeDom.CodeTypeReference -> unit
Public Sub Insert (index As Integer, value As CodeTypeReference)

Parâmetros

index
Int32

O índice baseado em zero no qual o item deve ser inserido.

value
CodeTypeReference

O CodeTypeReference a ser inserido.

Exemplos

// Inserts a CodeTypeReference at index 0 of the collection.
collection->Insert( 0, gcnew CodeTypeReference( bool::typeid ) );
// Inserts a CodeTypeReference at index 0 of the collection.
collection.Insert( 0, new CodeTypeReference(typeof(bool)) );
' Inserts a CodeTypeReference at index 0 of the collection.
collection.Insert(0, New CodeTypeReference(GetType(Boolean)))

Aplica-se a

Confira também