OptimisticConcurrencyException Constructors

Definition

Initializes a new instance of OptimisticConcurrencyException.

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.

Remarks

For more information about how to handle exceptions in your code, see Exception.

OptimisticConcurrencyException()

Initializes a new instance of OptimisticConcurrencyException.

public:
 OptimisticConcurrencyException();
public OptimisticConcurrencyException ();
Public Sub New ()

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to

OptimisticConcurrencyException(String)

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

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

Parameters

message
String

The message that describes the error.

Remarks

For more information about how to handle exceptions in your code, see Exception.

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(System::String ^ message, Exception ^ innerException);
public OptimisticConcurrencyException (string message, Exception innerException);
new System.Data.OptimisticConcurrencyException : string * Exception -> System.Data.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.

Remarks

For more information about how to handle exceptions in your code, see Exception.

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(System::String ^ message, Exception ^ innerException, System::Collections::Generic::IEnumerable<System::Data::Objects::ObjectStateEntry ^> ^ stateEntries);
public OptimisticConcurrencyException (string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Objects.ObjectStateEntry> stateEntries);
new System.Data.OptimisticConcurrencyException : string * Exception * seq<System.Data.Objects.ObjectStateEntry> -> System.Data.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.

Remarks

For more information about how to handle exceptions in your code, see Exception.

Applies to