CodeCatchClauseCollection.Add(CodeCatchClause) Método

Definición

Agrega a la colección el objeto CodeCatchClause especificado.

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

Parámetros

value
CodeCatchClause

Objeto CodeCatchClause que se agrega.

Devoluciones

Índice donde se insertó el nuevo elemento.

Ejemplos

En el ejemplo siguiente se muestra cómo agregar un CodeCatchClause objeto a la CodeCatchClauseCollection instancia de .

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

Se aplica a

Consulte también