CodeCatchClauseCollection.Add(CodeCatchClause) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
- value
- CodeCatchClause
The CodeCatchClause object to add.
Returns
The index at which the new element was inserted.
Examples
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"))
Applies to
See also
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.