EntityException 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
EntityException() |
Initializes a new instance of the EntityException class. |
EntityException(String) |
Initializes a new instance of the EntityException class. |
EntityException(SerializationInfo, StreamingContext) |
Initializes a new instance of the EntityException class. |
EntityException(String, Exception) |
Initializes a new instance of the EntityException class. |
EntityException()
Initializes a new instance of the EntityException class.
public EntityException ();
Public Sub New ()
Applies to
EntityException(String)
Initializes a new instance of the EntityException class.
public EntityException (string message);
new System.Data.Entity.Core.EntityException : string -> System.Data.Entity.Core.EntityException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
EntityException(SerializationInfo, StreamingContext)
Initializes a new instance of the EntityException class.
protected EntityException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Entity.Core.EntityException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Entity.Core.EntityException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Applies to
EntityException(String, Exception)
Initializes a new instance of the EntityException class.
public EntityException (string message, Exception innerException);
new System.Data.Entity.Core.EntityException : string * Exception -> System.Data.Entity.Core.EntityException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that caused the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
Applies to
Entity Framework