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
InvalidConstraintException Class

Represents the exception that is thrown when incorrectly trying to create or access a relation.

System..::.Object
  System..::.Exception
    System..::.SystemException
      System.Data..::.DataException
        System.Data..::.InvalidConstraintException

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

The InvalidConstraintException type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkInvalidConstraintException()()()Initializes a new instance of the InvalidConstraintException class.
Public methodSupported by the XNA FrameworkInvalidConstraintException(String)Initializes a new instance of the InvalidConstraintException class with the specified string.
Protected methodInvalidConstraintException(SerializationInfo, StreamingContext)Initializes a new instance of the InvalidConstraintException class with serialization information.
Public methodSupported by the XNA FrameworkInvalidConstraintException(String, Exception)Initializes a new instance of the InvalidConstraintException class with a specified error message and a reference to the inner exception that is the cause of this exception.
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 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 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 methodGetObjectDataWhen overridden in a derived class, sets the SerializationInfo with information about the exception. (Inherited from Exception.)
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 InvalidConstraintException is thrown when incorrectly invoking the following methods while trying to create or access a relation.

If you call Add, the InvalidConstraintException may be thrown if a relation cannot be created based on the values supplied in the parameters. If you call Clear, the InvalidConstraintException may be thrown if a ForeignKeyConstraint is enforced on the DataRowCollection. If you call GetParentRow, the InvalidConstraintException may be thrown if the columns have different data types or the tables do not belong to the same DataSet.

.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
InvalidConstraintException (Clase)

Representa la excepción que se produce al intentar crear una relación u obtener acceso a la misma de forma incorrecta.

System..::.Object
  System..::.Exception
    System..::.SystemException
      System.Data..::.DataException
        System.Data..::.InvalidConstraintException

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

El tipo InvalidConstraintException expone los siguientes miembros.

  NombreDescripción
Método públicoCompatible con XNA FrameworkInvalidConstraintException()()()Inicializa una nueva instancia de la clase InvalidConstraintException.
Método públicoCompatible con XNA FrameworkInvalidConstraintException(String)Inicializa una nueva instancia de la clase InvalidConstraintException con la cadena especificada.
Método protegidoInvalidConstraintException(SerializationInfo, StreamingContext)Inicializa una nueva instancia de la clase InvalidConstraintException con información de serialización.
Método públicoCompatible con XNA FrameworkInvalidConstraintException(String, Exception)Inicializa una nueva instancia de la clase InvalidConstraintException con un mensaje de error especificado y una referencia a la excepción interna que representa la causa de esta excepción.
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ú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 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úblicoGetObjectDataCuando se reemplaza en una clase derivada, establece SerializationInfo con información sobre la excepción. (Se hereda de Exception).
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

La excepción InvalidConstraintException se produce al invocar incorrectamente los siguientes métodos mientras se intenta crear u obtener acceso a una relación.

Si llama a Add, se puede producir InvalidConstraintException si no es posible crear una relación basada en los valores proporcionados en los parámetros. Si llama a Clear, se puede producir InvalidConstraintException si se fuerza un ForeignKeyConstraint en DataRowCollection. Si llama a GetParentRow, se puede producir InvalidConstraintException si las columnas tienen distintos tipos de datos o las tablas no pertenecen al mismo DataSet.

.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