CodeCatchClauseCollection.Add(CodeCatchClause) Método
Definição
Adiciona o objeto CodeCatchClause especificado à coleção.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
Parâmetros
- value
- CodeCatchClause
O objeto CodeCatchClause a ser adicionado.The CodeCatchClause object to add.
Retornos
O índice no qual o novo elemento foi inserido.The index at which the new element was inserted.
Exemplos
O exemplo a seguir demonstra como adicionar um CodeCatchClause objeto à CodeCatchClauseCollection instância do.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"))