LinqDataSourceValidationException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the LinqDataSourceValidationException class.
Overloads
LinqDataSourceValidationException() |
Initializes a new instance of the LinqDataSourceValidationException class with a system-supplied message that describes the error. |
LinqDataSourceValidationException(String) |
Initializes a new instance of the LinqDataSourceValidationException class with a specified message that describes the error. |
LinqDataSourceValidationException(SerializationInfo, StreamingContext) |
Initializes a new instance of the LinqDataSourceValidationException class with serialized data. |
LinqDataSourceValidationException(String, IDictionary<String,Exception>) |
Initializes a new instance of the LinqDataSourceValidationException class with a specified message that describes the error, and a collection of references to inner exceptions. |
LinqDataSourceValidationException(String, Exception) |
Initializes a new instance of the LinqDataSourceValidationException class with a specified error message and a reference to the inner exception. |
LinqDataSourceValidationException()
Initializes a new instance of the LinqDataSourceValidationException class with a system-supplied message that describes the error.
public:
LinqDataSourceValidationException();
public LinqDataSourceValidationException ();
Public Sub New ()
Remarks
The system-supplied message that describes the error takes into account the current system culture.
The following table shows the initial property values for an instance of the LinqDataSourceValidationException class.
Property | Value |
---|---|
InnerException | null . |
Message | A system-supplied localized description. |
See also
Applies to
LinqDataSourceValidationException(String)
Initializes a new instance of the LinqDataSourceValidationException class with a specified message that describes the error.
public:
LinqDataSourceValidationException(System::String ^ message);
public LinqDataSourceValidationException (string message);
new System.Web.UI.WebControls.LinqDataSourceValidationException : string -> System.Web.UI.WebControls.LinqDataSourceValidationException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Remarks
The following table shows the initial property values for an instance of the LinqDataSourceValidationException class.
Property | Value |
---|---|
InnerException | null . |
Message | The error message string specified in message . |
See also
Applies to
LinqDataSourceValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of the LinqDataSourceValidationException class with serialized data.
protected:
LinqDataSourceValidationException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected LinqDataSourceValidationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Web.UI.WebControls.LinqDataSourceValidationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Web.UI.WebControls.LinqDataSourceValidationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The object that holds the serialized object data.
- context
- StreamingContext
Context information about the source or destination.
Remarks
This constructor is called during deserialization to reconstitute the exception object that is transmitted over a stream.
Applies to
LinqDataSourceValidationException(String, IDictionary<String,Exception>)
Initializes a new instance of the LinqDataSourceValidationException class with a specified message that describes the error, and a collection of references to inner exceptions.
public:
LinqDataSourceValidationException(System::String ^ message, System::Collections::Generic::IDictionary<System::String ^, Exception ^> ^ innerExceptions);
public LinqDataSourceValidationException (string message, System.Collections.Generic.IDictionary<string,Exception> innerExceptions);
new System.Web.UI.WebControls.LinqDataSourceValidationException : string * System.Collections.Generic.IDictionary<string, Exception> -> System.Web.UI.WebControls.LinqDataSourceValidationException
Public Sub New (message As String, innerExceptions As IDictionary(Of String, Exception))
Parameters
- message
- String
The message that describes the error.
- innerExceptions
- IDictionary<String,Exception>
The collection of validation exceptions.
Applies to
LinqDataSourceValidationException(String, Exception)
Initializes a new instance of the LinqDataSourceValidationException class with a specified error message and a reference to the inner exception.
public:
LinqDataSourceValidationException(System::String ^ message, Exception ^ innerException);
public LinqDataSourceValidationException (string message, Exception innerException);
new System.Web.UI.WebControls.LinqDataSourceValidationException : string * Exception -> System.Web.UI.WebControls.LinqDataSourceValidationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
The exception that is the cause of the current exception.
Remarks
You typically will not use this constructor because validation exceptions are stored in the InnerExceptions property, not the InnerException property.