UpdateException 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
UpdateException() |
Initializes a new instance of UpdateException. |
UpdateException(String) |
Initializes a new instance of UpdateException with a specialized error message. |
UpdateException(SerializationInfo, StreamingContext) |
Initializes a new instance of UpdateException with serialized data. |
UpdateException(String, Exception) |
Initializes a new instance of the UpdateException class that uses a specified error message and a reference to the inner exception that is the cause of this exception. |
UpdateException(String, Exception, IEnumerable<ObjectStateEntry>) |
Initializes a new instance of the UpdateException class that uses a specified error message, a reference to the inner exception, and an enumerable collection of ObjectStateEntry objects. |
UpdateException()
Initializes a new instance of UpdateException.
public UpdateException ();
Public Sub New ()
Applies to
UpdateException(String)
Initializes a new instance of UpdateException with a specialized error message.
public UpdateException (string message);
new System.Data.Entity.Core.UpdateException : string -> System.Data.Entity.Core.UpdateException
Public Sub New (message As String)
Parameters
- message
- String
The message that describes the error.
Applies to
UpdateException(SerializationInfo, StreamingContext)
Initializes a new instance of UpdateException with serialized data.
protected UpdateException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.Entity.Core.UpdateException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.Entity.Core.UpdateException
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
UpdateException(String, Exception)
Initializes a new instance of the UpdateException class that uses a specified error message and a reference to the inner exception that is the cause of this exception.
public UpdateException (string message, Exception innerException);
new System.Data.Entity.Core.UpdateException : string * Exception -> System.Data.Entity.Core.UpdateException
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 is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
Applies to
UpdateException(String, Exception, IEnumerable<ObjectStateEntry>)
Initializes a new instance of the UpdateException class that uses a specified error message, a reference to the inner exception, and an enumerable collection of ObjectStateEntry objects.
public UpdateException (string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectStateEntry> stateEntries);
new System.Data.Entity.Core.UpdateException : string * Exception * seq<System.Data.Entity.Core.Objects.ObjectStateEntry> -> System.Data.Entity.Core.UpdateException
Public Sub New (message As String, innerException As Exception, stateEntries As IEnumerable(Of ObjectStateEntry))
Parameters
- message
- String
The error message that explains the reason for the exception.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.
- stateEntries
- IEnumerable<ObjectStateEntry>
The collection of ObjectStateEntry objects.
Applies to
Entity Framework