DBConcurrencyException Constructors

Definition

Initializes a new instance of the DBConcurrencyException class.

Overloads

DBConcurrencyException()

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException(String)

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException(String, Exception)

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException(String, Exception, DataRow[])

Initializes a new instance of the DBConcurrencyException class.

DBConcurrencyException()

Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs

Initializes a new instance of the DBConcurrencyException class.

C#
public DBConcurrencyException();

Remarks

The parameterless constructor initializes any fields to their default values.

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 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
.NET Standard 2.0, 2.1

DBConcurrencyException(String)

Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs

Initializes a new instance of the DBConcurrencyException class.

C#
public DBConcurrencyException(string? message);
C#
public DBConcurrencyException(string message);

Parameters

message
String

The text string describing the details of the exception.

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 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
.NET Standard 2.0, 2.1

DBConcurrencyException(String, Exception)

Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs

Initializes a new instance of the DBConcurrencyException class.

C#
public DBConcurrencyException(string? message, Exception? inner);
C#
public DBConcurrencyException(string message, Exception inner);

Parameters

message
String

The text string describing the details of the exception.

inner
Exception

A reference to an inner exception.

Remarks

You can create a new exception that catches an earlier exception. The code that handles the second exception can use the additional information from the earlier exception, also called an inner exception, to examine the cause of the initial error.

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 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
.NET Standard 2.0, 2.1

DBConcurrencyException(String, Exception, DataRow[])

Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs

Initializes a new instance of the DBConcurrencyException class.

C#
public DBConcurrencyException(string? message, Exception? inner, System.Data.DataRow[]? dataRows);
C#
public DBConcurrencyException(string message, Exception inner, System.Data.DataRow[] dataRows);

Parameters

message
String

The error message that explains the reason for this exception.

inner
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.

dataRows
DataRow[]

An array containing the DataRow objects whose update failure generated this exception.

See also

Applies to

.NET 10 a ďalšie verzie
Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 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
.NET Standard 2.0, 2.1