CodeCatchClauseCollection.Add(CodeCatchClause) Methode

Definitie

Hiermee voegt u het opgegeven CodeCatchClause object toe aan de verzameling.

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

Parameters

value
CodeCatchClause

Het CodeCatchClause object dat moet worden toegevoegd.

Retouren

De index waarop het nieuwe element is ingevoegd.

Voorbeelden

In het volgende voorbeeld ziet u hoe u een CodeCatchClause object toevoegt aan het CodeCatchClauseCollection exemplaar.

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

Van toepassing op

Zie ook