Share via


OptimisticConcurrencyException Constructors

Definition

Overloads

OptimisticConcurrencyException()

Initializes a new instance of OptimisticConcurrencyException.

OptimisticConcurrencyException(String)

Initializes a new instance of OptimisticConcurrencyException with a specialized error message.

OptimisticConcurrencyException(String, Exception)

Initializes a new instance of OptimisticConcurrencyException that uses a specified error message and a reference to the inner exception.

OptimisticConcurrencyException(String, Exception, IEnumerable<ObjectStateEntry>)

Initializes a new instance of OptimisticConcurrencyException that uses a specified error message, a reference to the inner exception, and an enumerable collection of ObjectStateEntry objects.

OptimisticConcurrencyException()

Initializes a new instance of OptimisticConcurrencyException.

public OptimisticConcurrencyException ();
Public Sub New ()

Applies to

OptimisticConcurrencyException(String)

Initializes a new instance of OptimisticConcurrencyException with a specialized error message.

public OptimisticConcurrencyException (string message);
new System.Data.Entity.Core.OptimisticConcurrencyException : string -> System.Data.Entity.Core.OptimisticConcurrencyException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

OptimisticConcurrencyException(String, Exception)

Initializes a new instance of OptimisticConcurrencyException that uses a specified error message and a reference to the inner exception.

public OptimisticConcurrencyException (string message, Exception innerException);
new System.Data.Entity.Core.OptimisticConcurrencyException : string * Exception -> System.Data.Entity.Core.OptimisticConcurrencyException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

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

OptimisticConcurrencyException(String, Exception, IEnumerable<ObjectStateEntry>)

Initializes a new instance of OptimisticConcurrencyException that uses a specified error message, a reference to the inner exception, and an enumerable collection of ObjectStateEntry objects.

public OptimisticConcurrencyException (string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Objects.ObjectStateEntry> stateEntries);
new System.Data.Entity.Core.OptimisticConcurrencyException : string * Exception * seq<System.Data.Entity.Core.Objects.ObjectStateEntry> -> System.Data.Entity.Core.OptimisticConcurrencyException
Public Sub New (message As String, innerException As Exception, stateEntries As IEnumerable(Of ObjectStateEntry))

Parameters

message
String

The message that describes the error.

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 enumerable collection of ObjectStateEntry objects.

Applies to