CodeCatchClauseCollection.Add(CodeCatchClause) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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"))