CodeCatchClauseCollection.Add(CodeCatchClause) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Adiciona o objeto especificado CodeCatchClause à coleção.
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 CodeCatchClause objetivo a acrescentar.
Devoluções
O índice onde o novo elemento foi inserido.
Exemplos
O exemplo seguinte demonstra como adicionar um CodeCatchClause objeto à CodeCatchClauseCollection instância.
// Adds a CodeCatchClause to the collection.
collection.Add( new CodeCatchClause("e") );
' Adds a CodeCatchClause to the collection.
collection.Add(New CodeCatchClause("e"))