Initializes a new instance of the DeletedRowInaccessibleException class.
Initializes a new instance of the DeletedRowInaccessibleException class.
[Visual Basic] Overloads Public Sub New()
[C#] public DeletedRowInaccessibleException();
[C++] public: DeletedRowInaccessibleException();
[JScript] public function DeletedRowInaccessibleException();
Initializes a new instance of the DeletedRowInaccessibleException class with the specified string.
[Visual Basic] Overloads Public Sub New(String)
[C#] public DeletedRowInaccessibleException(String);
[C++] public: DeletedRowInaccessibleException(String*);
[JScript] public function DeletedRowInaccessibleException(String);
The following example shows a simple procedure that raises the DeletedRowInaccessibleException if a DataRow object's RowState property equals Deleted.
Note This example shows how to use one of the overloaded version of the DeletedRowInaccessibleException constructor. For other examples that may be available, see the individual overload topics.
[Visual Basic]
Private Sub ChangeRows(myRow As DataRow) Select Case myRow.RowState Case DataRowState.Deleted err.RaiseException New DeletedRowInaccessibleException("The row was deleted") ' Other cases not shown End Select Catch delRowExc As DeletedRowInaccessibleException MessageBox.Show delRowExc.Message End Sub End Sub
DeletedRowInaccessibleException Class | DeletedRowInaccessibleException Members | System.Data Namespace