CodeStatementCollection.Insert-Methode
Fügt die angegebene CodeStatement 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 CodeStatement _
)
'Usage
Dim instance As CodeStatementCollection
Dim index As Integer
Dim value As CodeStatement
instance.Insert(index, value)
public void Insert (
int index,
CodeStatement value
)
public:
void Insert (
int index,
CodeStatement^ value
)
public void Insert (
int index,
CodeStatement value
)
public function Insert (
index : int,
value : CodeStatement
)
Parameter
- index
Der nullbasierte Index, an dem das angegebene Objekt eingefügt werden soll.
- value
Die einzufügende CodeStatement.
Beispiel
' Inserts a CodeStatement at index 0 of the collection.
collection.Insert(0, New CodeCommentStatement("Test comment statement"))
// Inserts a CodeStatement at index 0 of the collection.
collection.Insert( 0, new CodeCommentStatement("Test comment statement") );
// Inserts a CodeStatement at index 0 of the collection.
collection->Insert( 0, gcnew CodeCommentStatement( "Test comment statement" ) );
// Inserts a CodeStatement at index 0 of the collection.
collection.Insert( 0, new CodeCommentStatement("Test comment statement") );
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
CodeStatementCollection-Klasse
CodeStatementCollection-Member
System.CodeDom-Namespace
Add