Sugerir traducción
 
Otros han sugerido:

progress indicator
No hay más sugerencias.
Evaluar y enviar comentarios
Contraer todo/Expandir todo Contraer todo
Ver contenido:  en paraleloVer contenido: en paralelo
.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.

System..::.Object
  System..::.Exception
    System..::.SystemException
      System.Data..::.DBConcurrencyException

Namespace:  System.Data
Assembly:  System.Data (in System.Data.dll)
Visual Basic
<SerializableAttribute> _
Public NotInheritable Class DBConcurrencyException _
    Inherits SystemException
C#
[SerializableAttribute]
public sealed class DBConcurrencyException : SystemException
Visual C++
[SerializableAttribute]
public ref class DBConcurrencyException sealed : public SystemException
F#
[<Sealed>]
[<SerializableAttribute>]
type DBConcurrencyException =  
    class
        inherit SystemException
    end

The DBConcurrencyException type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkDBConcurrencyException()()()Initializes a new instance of the DBConcurrencyException class.
Public methodSupported by the XNA FrameworkDBConcurrencyException(String)Initializes a new instance of the DBConcurrencyException class.
Public methodSupported by the XNA FrameworkDBConcurrencyException(String, Exception)Initializes a new instance of the DBConcurrencyException class.
Public methodSupported by the XNA FrameworkDBConcurrencyException(String, Exception, array<DataRow>[]()[])Initializes a new instance of the DBConcurrencyException class.
Top
  NameDescription
Public propertyDataGets a collection of key/value pairs that provide additional user-defined information about the exception. (Inherited from Exception.)
Public propertyHelpLinkGets or sets a link to the help file associated with this exception. (Inherited from Exception.)
Protected propertySupported by the XNA FrameworkHResultGets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.)
Public propertySupported by the XNA FrameworkInnerExceptionGets the Exception instance that caused the current exception. (Inherited from Exception.)
Public propertySupported by the XNA FrameworkMessageGets a message that describes the current exception. (Inherited from Exception.)
Public propertySupported by the XNA FrameworkRowGets or sets the value of the DataRow that generated the DBConcurrencyException.
Public propertySupported by the XNA FrameworkRowCountGets the number of rows whose update failed, generating this exception.
Public propertySourceGets or sets the name of the application or the object that causes the error. (Inherited from Exception.)
Public propertySupported by the XNA FrameworkStackTraceGets a string representation of the immediate frames on the call stack. (Inherited from Exception.)
Public propertyTargetSiteGets the method that throws the current exception. (Inherited from Exception.)
Top
  NameDescription
Public methodSupported by the XNA FrameworkCopyToRows(array<DataRow>[]()[])Copies the DataRow objects whose update failure generated this exception, to the specified array of DataRow objects.
Public methodSupported by the XNA FrameworkCopyToRows(array<DataRow>[]()[], Int32)Copies the DataRow objects whose update failure generated this exception, to the specified array of DataRow objects, starting at the specified destination array index.
Public methodSupported by the XNA FrameworkEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the XNA FrameworkGetBaseExceptionWhen overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Inherited from Exception.)
Public methodSupported by the XNA FrameworkGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetObjectDataPopulates the aprcified serialization information object with the data needed to serialize the DBConcurrencyException. (Overrides Exception..::.GetObjectData(SerializationInfo, StreamingContext).)
Public methodSupported by the XNA FrameworkGetTypeGets the runtime type of the current instance. (Inherited from Exception.)

In XNA Framework 3.0, this member is inherited from Object..::.GetType()()().
Protected methodSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkToStringCreates and returns a string representation of the current exception. (Inherited from Exception.)
Top
  NameDescription
Protected eventSerializeObjectStateOccurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Inherited from Exception.)
Top

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.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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.

System..::.Object
  System..::.Exception
    System..::.SystemException
      System.Data..::.DBConcurrencyException

Espacio de nombres:  System.Data
Ensamblado:  System.Data (en System.Data.dll)
Visual Basic
<SerializableAttribute> _
Public NotInheritable Class DBConcurrencyException _
    Inherits SystemException
C#
[SerializableAttribute]
public sealed class DBConcurrencyException : SystemException
Visual C++
[SerializableAttribute]
public ref class DBConcurrencyException sealed : public SystemException
F#
[<Sealed>]
[<SerializableAttribute>]
type DBConcurrencyException =  
    class
        inherit SystemException
    end

El tipo DBConcurrencyException expone los siguientes miembros.

  NombreDescripción
Método públicoCompatible con XNA FrameworkDBConcurrencyException()()()Inicializa una nueva instancia de la clase DBConcurrencyException.
Método públicoCompatible con XNA FrameworkDBConcurrencyException(String)Inicializa una nueva instancia de la clase DBConcurrencyException.
Método públicoCompatible con XNA FrameworkDBConcurrencyException(String, Exception)Inicializa una nueva instancia de la clase DBConcurrencyException.
Método públicoCompatible con XNA FrameworkDBConcurrencyException(String, Exception, array<DataRow>[]()[])Inicializa una nueva instancia de la clase DBConcurrencyException.
Arriba
  NombreDescripción
Propiedad públicaDataObtiene una colección de pares de clave y valor que proporcionan información adicional definida por el usuario acerca de la excepción. (Se hereda de Exception).
Propiedad públicaHelpLinkObtiene o establece un vínculo al archivo de ayuda asociado a esta excepción. (Se hereda de Exception).
Propiedad protegidaCompatible con XNA FrameworkHResultObtiene o establece HRESULT, un valor numérico codificado que se asigna a una excepción específica. (Se hereda de Exception).
Propiedad públicaCompatible con XNA FrameworkInnerExceptionObtiene la instancia Exception que produjo la excepción actual. (Se hereda de Exception).
Propiedad públicaCompatible con XNA FrameworkMessageObtiene un mensaje que describe la excepción actual. (Se hereda de Exception).
Propiedad públicaCompatible con XNA FrameworkRowObtiene o establece el valor del objeto DataRow que ha generado la excepción DBConcurrencyException.
Propiedad públicaCompatible con XNA FrameworkRowCountObtiene el número de filas respecto de las que se ha producido un error al actualizar, generando esta excepción.
Propiedad públicaSourceDevuelve o establece el nombre de la aplicación o del objeto que generó el error. (Se hereda de Exception).
Propiedad públicaCompatible con XNA FrameworkStackTraceObtiene una representación de cadena de los marcos inmediatos en la pila de llamadas. (Se hereda de Exception).
Propiedad públicaTargetSiteObtiene el método que produjo la excepción actual. (Se hereda de Exception).
Arriba
  NombreDescripción
Método públicoCompatible con XNA FrameworkCopyToRows(array<DataRow>[]()[])Copia en la matriz especificada de objetos DataRow los objetos DataRow respecto de los que un error en la actualización ha generado esta excepción.
Método públicoCompatible con XNA FrameworkCopyToRows(array<DataRow>[]()[], Int32)Copia en la matriz de objetos DataRow especificada, comenzando en el índice especificado de la matriz de destino, los objetos DataRow respecto de los que un error en la actualización ha generado esta excepción.
Método públicoCompatible con XNA FrameworkEquals(Object)Determina si el objeto Object especificado es igual al objeto Object actual. (Se hereda de Object).
Método protegidoCompatible con XNA FrameworkFinalizePermite que un objeto intente liberar recursos y realizar otras operaciones de limpieza antes de ser reclamado por la recolección de elementos no utilizados. (Se hereda de Object).
Método públicoCompatible con XNA FrameworkGetBaseExceptionCuando se reemplaza en una clase derivada, devuelve la clase Exception que representa la causa principal de una o más excepciones posteriores. (Se hereda de Exception).
Método públicoCompatible con XNA FrameworkGetHashCodeActúa como función hash para un tipo concreto. (Se hereda de Object).
Método públicoGetObjectDataRellena un objeto de información de serialización especificado con los datos necesarios para serializar la excepción DBConcurrencyException. (Invalida a Exception..::.GetObjectData(SerializationInfo, StreamingContext)).
Método públicoCompatible con XNA FrameworkGetTypeObtiene el tipo en tiempo de ejecución de la instancia actual. (Se hereda de Exception).

En XNA Framework 3.0, este miembro se hereda de Object..::.GetType()()().
Método protegidoCompatible con XNA FrameworkMemberwiseCloneCrea una copia superficial del objeto Object actual. (Se hereda de Object).
Método públicoCompatible con XNA FrameworkToStringCrea y devuelve una representación de cadena de la excepción actual. (Se hereda de Exception).
Arriba
  NombreDescripción
Evento protegidoSerializeObjectStateSe 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

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.

.NET Framework

Compatible con: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Compatible con: 4, 3.5 SP1

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.
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.
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker