.NET Framework Class Library DBConcurrencyException Class The exception that is thrown by the DataAdapter during an insert, update, or delete operation if the number of rows affected equals zero.

Inheritance Hierarchy
Namespace:
System.Data
Assembly:
System.Data (in System.Data.dll)

Syntax
<SerializableAttribute> _
Public NotInheritable Class DBConcurrencyException _
Inherits SystemException
[SerializableAttribute]
public sealed class DBConcurrencyException : SystemException
[SerializableAttribute]
public ref class DBConcurrencyException sealed : public SystemException
[<Sealed>]
[<SerializableAttribute>]
type DBConcurrencyException =
class
inherit SystemException
end
The DBConcurrencyException type exposes the following members.

Constructors

Methods

Events
|
| Name | Description |
|---|
.gif) | SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.) | Top

Remarks
The DataAdapter examines the number of rows affected by the execution of each insert, update, or delete operation, and throws this exception if the number equals zero. This exception is generally caused by a concurrency violation.

Version Information
.NET FrameworkSupported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0 .NET Framework Client ProfileSupported in: 4, 3.5 SP1

Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role not supported), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also
|
Biblioteca de clases de .NET Framework DBConcurrencyException (Clase) Excepción que inicia DataAdapter durante una operación de inserción, actualización o eliminación si el número de filas afectadas es igual a cero.

Jerarquía de herencia
Espacio de nombres:
System.Data
Ensamblado:
System.Data (en System.Data.dll)

Sintaxis
<SerializableAttribute> _
Public NotInheritable Class DBConcurrencyException _
Inherits SystemException
[SerializableAttribute]
public sealed class DBConcurrencyException : SystemException
[SerializableAttribute]
public ref class DBConcurrencyException sealed : public SystemException
[<Sealed>]
[<SerializableAttribute>]
type DBConcurrencyException =
class
inherit SystemException
end
El tipo DBConcurrencyException expone los siguientes miembros.

Constructores

Métodos

Eventos
|
| Nombre | Descripción |
|---|
.gif) | SerializeObjectState | Se produce cuando se serializa una excepción para crear un objeto de estados de excepción que contiene datos serializados sobre la excepción. (Se hereda de Exception). | Arriba

Comentarios
El objeto DataAdapter examina el número de filas afectadas al ejecutar cada una de las operaciones de inserción, actualización o eliminación, y produce esta excepción si el número es igual a cero. Normalmente, una infracción de simultaneidad provoca la excepción.

Información de versión
.NET FrameworkCompatible con: 4, 3.5, 3.0, 2.0, 1.1, 1.0 .NET Framework Client ProfileCompatible con: 4, 3.5 SP1

Plataformas
Windows 7, Windows Vista SP1 o posterior, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (no se admite Server Core), Windows Server 2008 R2 (se admite Server Core con SP1 o posterior), Windows Server 2003 SP2
.NET Framework no admite todas las versiones de todas las plataformas. Para obtener una lista de las versiones compatibles, vea Requisitos de sistema de .NET Framework.

Seguridad para subprocesos
Todos los miembros static ( Shared en Visual Basic) públicos de este tipo son seguros para la ejecución de subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Vea también
|