CodeTypeDeclarationCollection.Insert-Methode
Fügt die angegebene CodeTypeDeclaration am angegebenen Index in die Auflistung ein.
Namespace: System.CodeDom
Assembly: System (in system.dll)
Syntax
'Declaration
Public Sub Insert ( _
index As Integer, _
value As CodeTypeDeclaration _
)
'Usage
Dim instance As CodeTypeDeclarationCollection
Dim index As Integer
Dim value As CodeTypeDeclaration
instance.Insert(index, value)
public void Insert (
int index,
CodeTypeDeclaration value
)
public:
void Insert (
int index,
CodeTypeDeclaration^ value
)
public void Insert (
int index,
CodeTypeDeclaration value
)
public function Insert (
index : int,
value : CodeTypeDeclaration
)
Parameter
- index
Der nullbasierte Index, an dem das angegebene Objekt eingefügt werden soll.
- value
Die einzufügende CodeTypeDeclaration.
Beispiel
' Inserts a CodeTypeDeclaration at index 0 of the collection.
collection.Insert(0, New CodeTypeDeclaration("TestType"))
// Inserts a CodeTypeDeclaration at index 0 of the collection.
collection.Insert( 0, new CodeTypeDeclaration("TestType") );
// Inserts a CodeTypeDeclaration at index 0 of the collection.
collection->Insert( 0, gcnew CodeTypeDeclaration( "TestType" ) );
// Inserts a CodeTypeDeclaration at index 0 of the collection.
collection.Insert(0, new CodeTypeDeclaration("TestType"));
Plattformen
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
CodeTypeDeclarationCollection-Klasse
CodeTypeDeclarationCollection-Member
System.CodeDom-Namespace
Add