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
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.