ErrorAddDataBoundRowEventArgs.InnerException Property
Gets the Exception instance that caused the current exception.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Syntax
'Declaration
ReadOnly Property InnerException As Exception
Get
Exception InnerException { get; }
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.