This exception is thrown if you try to access a DataRow after it has been marked deleted, but before changes have been accepted. Typically, it occurs when you try to retrieve the current value of a deleted row. To prevent this exception, check the DataRow.RowState property before attempting to read the value, and skip the task if the row is in the DataRowState.Deleted state. A related exception that has the same cause is DeletedRowInaccessibleException.

public class VersionNotFoundException : DataException {

// Public Constructors

   public VersionNotFoundException( );  

   public VersionNotFoundException(string s);  

// Protected Constructors

   protected VersionNotFoundException(System.Runtime.Serialization.SerializationInfo info,

        System.Runtime.Serialization.StreamingContext context);



System.Object System.Exception(System.Runtime.Serialization.ISerializable) System.SystemException DataException VersionNotFoundException

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.