Name
VersionNotFoundException
Synopsis
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(strings
); // Protected Constructors protected VersionNotFoundException(System.Runtime.Serialization.SerializationInfoinfo
, System.Runtime.Serialization.StreamingContextcontext
); }
Hierarchy
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
DataException
→
VersionNotFoundException
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.