EntityDataSourceValidationException EntityDataSourceValidationException EntityDataSourceValidationException EntityDataSourceValidationException Constructors

Definition

Overloads

EntityDataSourceValidationException() EntityDataSourceValidationException() EntityDataSourceValidationException()

Creates a new instance of the EntityDataSourceValidationException class with a system-supplied message that describes the error.

EntityDataSourceValidationException(String) EntityDataSourceValidationException(String) EntityDataSourceValidationException(String) EntityDataSourceValidationException(String)

Creates a new instance of the EntityDataSourceValidationException class with a specified message that describes the error.

EntityDataSourceValidationException(String, Exception) EntityDataSourceValidationException(String, Exception) EntityDataSourceValidationException(String, Exception) EntityDataSourceValidationException(String, Exception)

Creates a new instance of the EntityDataSourceValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

EntityDataSourceValidationException() EntityDataSourceValidationException() EntityDataSourceValidationException()

Creates a new instance of the EntityDataSourceValidationException class with a system-supplied message that describes the error.

public:
 EntityDataSourceValidationException();
public EntityDataSourceValidationException ();
Public Sub New ()

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error, such as "DefaultMessageDisplayedByParameterlessCtorWriterMustSupply". This message takes into account the current system culture.

The following table shows the initial property values for an instance of InsufficientMemoryException.

Property Value
InnerException null.
Message The localized error message string.
See also

EntityDataSourceValidationException(String) EntityDataSourceValidationException(String) EntityDataSourceValidationException(String) EntityDataSourceValidationException(String)

Creates a new instance of the EntityDataSourceValidationException class with a specified message that describes the error.

public:
 EntityDataSourceValidationException(System::String ^ message);
public EntityDataSourceValidationException (string message);
new System.Web.UI.WebControls.EntityDataSourceValidationException : string -> System.Web.UI.WebControls.EntityDataSourceValidationException
Public Sub New (message As String)

Parameters

message
String String String String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Remarks

The following table shows the initial property values for an instance of EntityDataSourceValidationException.

Property Value
InnerException null.
Message The error message string specified in message.
See also

EntityDataSourceValidationException(String, Exception) EntityDataSourceValidationException(String, Exception) EntityDataSourceValidationException(String, Exception) EntityDataSourceValidationException(String, Exception)

Creates a new instance of the EntityDataSourceValidationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 EntityDataSourceValidationException(System::String ^ message, Exception ^ innerException);
public EntityDataSourceValidationException (string message, Exception innerException);
new System.Web.UI.WebControls.EntityDataSourceValidationException : string * Exception -> System.Web.UI.WebControls.EntityDataSourceValidationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String String String String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception Exception Exception Exception

The exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Remarks

An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

The following table shows the initial property values for an instance of EntityDataSourceValidationException.

Property Value
InnerException null.
Message The error message string specified in message.
See also

Applies to