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 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.