Upraviť

Zdieľať cez


CodeCatchClauseCollection.Add(CodeCatchClause) Method

Definition

Adds the specified CodeCatchClause object to the collection.

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

The CodeCatchClause object to add.

Returns

The index at which the new element was inserted.

Examples

The following example demonstrates how to add a CodeCatchClause object to the CodeCatchClauseCollection instance.

// 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"))

Applies to

See also