Name

ReadOnlyException

Synopsis

This exception occurs when you attempt to modify a value in a read-only field (a column that has DataColumn.ReadOnly set to true ).

public class ReadOnlyException : DataException {

// Public Constructors

   public ReadOnlyException( );  

   public ReadOnlyException(string s);  

// Protected Constructors

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

        System.Runtime.Serialization.StreamingContext context);

}

Hierarchy

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

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.