Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.
See Also
Reference
ErrorAddDataBoundRowEventArgs Class