NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DeletedRowInaccessibleException Constructor (String)

Initializes a new instance of the DeletedRowInaccessibleException class with the specified string.

[Visual Basic]
Overloads Public Sub New( _
   ByVal s As String _
)
[C#]
public DeletedRowInaccessibleException(
   string s
);
[C++]
public: DeletedRowInaccessibleException(
   String* s
);
[JScript]
public function DeletedRowInaccessibleException(
   s : String
);

Parameters

s
A string that can be printed with the ToString property.

Remarks

Use the DataRow class's RowState to determine if a row has been deleted.

Example [Visual Basic]

The following example shows a simple procedure that raises the DeletedRowInaccessibleException if a DataRow object's RowState property equals Deleted.

[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

See Also

DeletedRowInaccessibleException Class | DeletedRowInaccessibleException Members | System.Data Namespace | DeletedRowInaccessibleException Constructor Overload List | BeginEdit | DataRow | DataRowState | Item | ItemArray | RowState