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.

C#
public OptimisticConcurrencyException();

Remarks

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

Applies to

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OptimisticConcurrencyException(String)

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

C#
public OptimisticConcurrencyException(string message);

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

OptimisticConcurrencyException(String, Exception)

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

C#
public OptimisticConcurrencyException(string message, Exception innerException);

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

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.

C#
public OptimisticConcurrencyException(string message, Exception innerException, System.Collections.Generic.IEnumerable<System.Data.Objects.ObjectStateEntry> stateEntries);

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

.NET Framework 4.8.1 a ďalšie verzie
Produkt Verzie
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1