Freigeben über


CodeCatchClauseCollection.Add-Methode

Fügt der Auflistung die angegebene CodeCatchClause hinzu.

Namespace: System.CodeDom
Assembly: System (in system.dll)

Syntax

'Declaration
Public Function Add ( _
    value As CodeCatchClause _
) As Integer
'Usage
Dim instance As CodeCatchClauseCollection
Dim value As CodeCatchClause
Dim returnValue As Integer

returnValue = instance.Add(value)
public int Add (
    CodeCatchClause value
)
public:
int Add (
    CodeCatchClause^ value
)
public int Add (
    CodeCatchClause value
)
public function Add (
    value : CodeCatchClause
) : int

Parameter

Rückgabewert

Der Index, an dem das neue Element eingefügt wurde.

Beispiel

' Adds a CodeCatchClause to the collection.
collection.Add(New CodeCatchClause("e"))
// Adds a CodeCatchClause to the collection.
collection.Add( new CodeCatchClause("e") );
// Adds a CodeCatchClause to the collection.
collection->Add( gcnew CodeCatchClause( "e" ) );
// Adds a CodeCatchClause to the collection.
collection.Add(new CodeCatchClause("e"));

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

CodeCatchClauseCollection-Klasse
CodeCatchClauseCollection-Member
System.CodeDom-Namespace
AddRange