CodeCatchClauseCollection.Add(CodeCatchClause) Methode

Definition

Fügt der Auflistung das angegebene CodeCatchClause-Objekt hinzu.

public:
 int Add(System::CodeDom::CodeCatchClause ^ value);
public int Add (System.CodeDom.CodeCatchClause value);
member this.Add : System.CodeDom.CodeCatchClause -> int
Public Function Add (value As CodeCatchClause) As Integer

Parameter

value
CodeCatchClause

Das hinzuzufügende CodeCatchClause-Objekt.

Gibt zurück

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

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie dem instance ein CodeCatchClause -Objekt CodeCatchClauseCollection hinzugefügt wird.

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

Gilt für:

Weitere Informationen