DataSourceException Constructor(SerializationInfo,StreamingContext)
Initializes a new instance of the DataSourceException class with serialized data.

C# Syntax

protected DataSourceException( 
   SerializationInfo info,
   StreamingContext context
)

Parameters

info
The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
context
The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.