ErrorAddDataBoundRowEventArgs.InnerException Property (2007 System)

Gets the Exception instance that caused the current exception.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

Syntax

'Declaration
Public ReadOnly Property InnerException As Exception
'Usage
Dim instance As ErrorAddDataBoundRowEventArgs 
Dim value As Exception 

value = instance.InnerException
public Exception InnerException { get; }
public:
property Exception^ InnerException {
    Exception^ get ();
}
public function get InnerException () : Exception

Property Value

Type: System.Exception
An instance of Exception that describes the error that caused the current exception.

Remarks

The ErrorAddDataBoundRow event is raised as a direct result of an exception while attempting to add a new row to the data source. Use the InnerException property to obtain the exception that led to this error. For example, if the DataTable that is bound to the ListObject control does not allow a column to be nulla null reference (Nothing in Visual Basic), and the user does not specify a value for this column, the attempt to add the row causes a NoNullAllowedException to be raised.

.NET Framework Security

See Also

Reference

ErrorAddDataBoundRowEventArgs Class

ErrorAddDataBoundRowEventArgs Members

Microsoft.Office.Tools.Excel Namespace