Name
StrongTypingException
Synopsis
This exception is thrown when you try to access a
null value in a column of a strongly typed
DataSet. This exception isn’t
generated by the .NET runtime. Instead, the strongly typed
DataSet class catches an
System.InvalidCastException and then throws a
StrongTypingException to notify your code of the
problem. This code takes place in the get property
accessor for a strongly typed DataRow.
public class StrongTypingException : DataException { // Public Constructors public StrongTypingException( ); public StrongTypingException(strings, ExceptioninnerException); // Protected Constructors protected StrongTypingException(System.Runtime.Serialization.SerializationInfoinfo, System.Runtime.Serialization.StreamingContextcontext); }
Hierarchy
System.Object
→
System.Exception(System.Runtime.Serialization.ISerializable)
→
System.SystemException
→
DataException
→
StrongTypingException
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access