DbQueryConcurrencyException 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
| Name | Description |
|---|---|
| DbQueryConcurrencyException() |
Initializes a new instance of the DbQueryConcurrencyException class. |
| DbQueryConcurrencyException(String) |
Initializes a new instance of the DbQueryConcurrencyException class. |
| DbQueryConcurrencyException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the DbQueryConcurrencyException class from a serialized form. |
| DbQueryConcurrencyException(String, Exception) |
Initializes a new instance of the DbQueryConcurrencyException class. |
DbQueryConcurrencyException()
Initializes a new instance of the DbQueryConcurrencyException class.
public DbQueryConcurrencyException();
Public Sub New ()
Applies to
DbQueryConcurrencyException(String)
Initializes a new instance of the DbQueryConcurrencyException class.
public DbQueryConcurrencyException(string message);
new Microsoft.EntityFrameworkCore.DbQueryConcurrencyException : string -> Microsoft.EntityFrameworkCore.DbQueryConcurrencyException
Public Sub New (message As String)
Parameters
- message
- String
The error message that explains the reason for the exception.
Applies to
DbQueryConcurrencyException(SerializationInfo, StreamingContext)
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
Initializes a new instance of the DbQueryConcurrencyException class from a serialized form.
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
protected DbQueryConcurrencyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")>]
new Microsoft.EntityFrameworkCore.DbQueryConcurrencyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.DbQueryConcurrencyException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The serialization info.
- context
- StreamingContext
The streaming context being used.
- Attributes
Applies to
DbQueryConcurrencyException(String, Exception)
Initializes a new instance of the DbQueryConcurrencyException class.
public DbQueryConcurrencyException(string message, Exception? innerException);
new Microsoft.EntityFrameworkCore.DbQueryConcurrencyException : string * Exception -> Microsoft.EntityFrameworkCore.DbQueryConcurrencyException
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.