CodeCatchClauseCollection.Add(CodeCatchClause) Metodo

Definizione

Aggiunge l'oggetto specificato CodeCatchClause all'insieme.

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

Parametri

value
CodeCatchClause

Oggetto CodeCatchClause da aggiungere.

Valori restituiti

Indice in corrispondenza del quale è stato inserito il nuovo elemento.

Esempio

Nell'esempio seguente viene illustrato come aggiungere un CodeCatchClause oggetto all'istanza CodeCatchClauseCollection di .

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

Si applica a

Vedi anche