DbEntityValidationException 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.
Overloads
DbEntityValidationException() |
Initializes a new instance of DbEntityValidationException. |
DbEntityValidationException(String) |
Initializes a new instance of DbEntityValidationException. |
DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>) |
Initializes a new instance of DbEntityValidationException. |
DbEntityValidationException(String, Exception) |
Initializes a new instance of DbEntityValidationException. |
DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>, Exception) |
Initializes a new instance of DbEntityValidationException. |
DbEntityValidationException()
Initializes a new instance of DbEntityValidationException.
public DbEntityValidationException ();
Public Sub New ()
Applies to
DbEntityValidationException(String)
Initializes a new instance of DbEntityValidationException.
public DbEntityValidationException (string message);
new System.Data.Entity.Validation.DbEntityValidationException : string -> System.Data.Entity.Validation.DbEntityValidationException
Public Sub New (message As String)
Parameters
- message
- String
The exception message.
Applies to
DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>)
Initializes a new instance of DbEntityValidationException.
public DbEntityValidationException (string message, System.Collections.Generic.IEnumerable<System.Data.Entity.Validation.DbEntityValidationResult> entityValidationResults);
new System.Data.Entity.Validation.DbEntityValidationException : string * seq<System.Data.Entity.Validation.DbEntityValidationResult> -> System.Data.Entity.Validation.DbEntityValidationException
Public Sub New (message As String, entityValidationResults As IEnumerable(Of DbEntityValidationResult))
Parameters
- message
- String
The exception message.
- entityValidationResults
- IEnumerable<DbEntityValidationResult>
Validation results.
Applies to
DbEntityValidationException(String, Exception)
Initializes a new instance of DbEntityValidationException.
public DbEntityValidationException (string message, Exception innerException);
new System.Data.Entity.Validation.DbEntityValidationException : string * Exception -> System.Data.Entity.Validation.DbEntityValidationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The exception message.
- innerException
- Exception
The inner exception.
Applies to
DbEntityValidationException(String, IEnumerable<DbEntityValidationResult>, Exception)
Initializes a new instance of DbEntityValidationException.
public DbEntityValidationException (string message, System.Collections.Generic.IEnumerable<System.Data.Entity.Validation.DbEntityValidationResult> entityValidationResults, Exception innerException);
new System.Data.Entity.Validation.DbEntityValidationException : string * seq<System.Data.Entity.Validation.DbEntityValidationResult> * Exception -> System.Data.Entity.Validation.DbEntityValidationException
Public Sub New (message As String, entityValidationResults As IEnumerable(Of DbEntityValidationResult), innerException As Exception)
Parameters
- message
- String
The exception message.
- entityValidationResults
- IEnumerable<DbEntityValidationResult>
Validation results.
- innerException
- Exception
The inner exception.
Applies to
Entity Framework