ModelValidationException 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
ModelValidationException() |
Initializes a new instance of ModelValidationException |
ModelValidationException(String) |
Initializes a new instance of ModelValidationException |
ModelValidationException(SerializationInfo, StreamingContext) |
Initializes a new instance of ModelValidationException class serialization info and streaming context. |
ModelValidationException(String, Exception) |
Initializes a new instance of ModelValidationException |
ModelValidationException()
Initializes a new instance of ModelValidationException
public ModelValidationException ();
Public Sub New ()
Applies to
ModelValidationException(String)
Initializes a new instance of ModelValidationException
public ModelValidationException (string message);
new System.Data.Entity.ModelConfiguration.ModelValidationException : string -> System.Data.Entity.ModelConfiguration.ModelValidationException
Public Sub New (message As String)
Parameters
- message
- String
The exception message.
Applies to
ModelValidationException(SerializationInfo, StreamingContext)
Initializes a new instance of ModelValidationException class serialization info and streaming context.
protected ModelValidationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Entity.ModelConfiguration.ModelValidationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Entity.ModelConfiguration.ModelValidationException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The serialization info.
- context
- StreamingContext
The streaming context.
Applies to
ModelValidationException(String, Exception)
Initializes a new instance of ModelValidationException
public ModelValidationException (string message, Exception innerException);
new System.Data.Entity.ModelConfiguration.ModelValidationException : string * Exception -> System.Data.Entity.ModelConfiguration.ModelValidationException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The exception message.
- innerException
- Exception
The inner exception.
Applies to
Entity Framework