FoodCandy!

ExceptionCollection Class Reference

A strongly typed collection of Exception objects. More...

List of all members.


Public Member Functions

int Add (Exception exception)
 Adds a specified exception to this collection.
bool Contains (Exception exception)
 Determines whether the ExceptionCollection contains a specific element.
void CopyTo (Exception[] array, int index)
 Copies the entire ExceptionCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
int IndexOf (Exception exception)
 Searches for the specified Exception and returns the zero-based index of the first occurrence within the entire ExceptionCollection.
void Insert (int index, Exception exception)
 Inserts an Exception into this collection at a specified index.
void Remove (Exception exception)
 Removes a specified Exception from this collection.

Properties

Exception this [int index]
 Gets or sets the exception at a specified index.

In C#, this property is the indexer for the class.

.

Exception LastException
 Returns the last exception added through the Add method.

Detailed Description

A strongly typed collection of Exception objects.


Member Function Documentation

int Add Exception  exception  ) 
 

Adds a specified exception to this collection.

Parameters:
exception The exception to add.
Returns:
The zero-based index of the added exception -or- -1 if the exception already exists.

bool Contains Exception  exception  ) 
 

Determines whether the ExceptionCollection contains a specific element.

Parameters:
exception The Exception to locate in the ExceptionCollection.
Returns:
true if the ExceptionCollection contains the specified value; otherwise, false.

void CopyTo Exception[]  array,
int  index
 

Copies the entire ExceptionCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

Parameters:
array The one-dimensional Exception Array that is the destination of the elements copied from ExceptionCollection. The Array must have zero-based indexing.
index The zero-based index in array at which copying begins.
Exceptions:
ArgumentNullException array is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeException index is less than zero.
ArgumentException array is multidimensional. -or- index is equal to or greater than the length of array.-or-The number of elements in the source ExceptionCollection is greater than the available space from index to the end of the destination array.

int IndexOf Exception  exception  ) 
 

Searches for the specified Exception and returns the zero-based index of the first occurrence within the entire ExceptionCollection.

Parameters:
exception The Exception to locate in the ExceptionCollection.
Returns:
The zero-based index of the first occurrence of RssChannel within the entire ExceptionCollection, if found; otherwise, -1.

void Insert int  index,
Exception  exception
 

Inserts an Exception into this collection at a specified index.

Parameters:
index The zero-based index of the collection at which to insert the Exception.
exception The Exception to insert into this collection.

void Remove Exception  exception  ) 
 

Removes a specified Exception from this collection.

Parameters:
exception The Exception to remove.

Property Documentation

Exception LastException [get]
 

Returns the last exception added through the Add method.

The last exception -or- null if no exceptions exist

Exception this[int index] [get, set]
 

Gets or sets the exception at a specified index.

In C#, this property is the indexer for the class.

.

Parameters:
index The index of the collection to access.

A exception at each valid index.

This method is an indexer that can be used to access the collection.


The documentation for this class was generated from the following file:
  • Rss.Net/Collections/ExceptionCollection.cs
© FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:51 2007 | Doxygen 1.4.6-NO