CodeNamespaceCollection.Insert(Int32, CodeNamespace) Metodo

Definizione

Inserisce l'oggetto specificato CodeNamespace nell'insieme in corrispondenza dell'indice specificato.

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

Parametri

index
Int32

Indice in base zero in cui deve essere inserito il nuovo elemento.

value
CodeNamespace

Oggetto CodeNamespace da inserire.

Esempio

Nell'esempio seguente viene illustrato come utilizzare il Insert metodo per inserire un CodeNamespace oggetto in un oggetto CodeNamespaceCollection.

// Inserts a CodeNamespace at index 0 of the collection.
collection.Insert( 0, new CodeNamespace("TestNamespace") );
' Inserts a CodeNamespace at index 0 of the collection.
collection.Insert(0, New CodeNamespace("TestNamespace"))

Si applica a

Vedi anche