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

The exception that is thrown when there is not enough memory to continue the execution of a program.

System..::.Object
  System..::.Exception
    System..::.SystemException
      System..::.OutOfMemoryException
        System..::.InsufficientMemoryException

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)
Visual Basic
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Class OutOfMemoryException _
    Inherits SystemException
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
public class OutOfMemoryException : SystemException
Visual C++
[SerializableAttribute]
[ComVisibleAttribute(true)]
public ref class OutOfMemoryException : public SystemException
F#
[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type OutOfMemoryException =  
    class
        inherit SystemException
    end

The OutOfMemoryException type exposes the following members.

  NameDescription
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryOutOfMemoryException()()()Initializes a new instance of the OutOfMemoryException class.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryOutOfMemoryException(String)Initializes a new instance of the OutOfMemoryException class with a specified error message.
Protected methodOutOfMemoryException(SerializationInfo, StreamingContext)Initializes a new instance of the OutOfMemoryException class with serialized data.
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryOutOfMemoryException(String, Exception)Initializes a new instance of the OutOfMemoryException 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 FrameworkSupported by Portable Class LibraryHResultGets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Inherited from Exception.)
Public propertySupported by the XNA FrameworkSupported by Portable Class LibraryInnerExceptionGets the Exception instance that caused the current exception. (Inherited from Exception.)
Public propertySupported by the XNA FrameworkSupported by Portable Class LibraryMessageGets 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 FrameworkSupported by Portable Class LibraryStackTraceGets 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 FrameworkSupported by Portable Class LibraryEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the XNA FrameworkSupported by Portable Class LibraryFinalizeAllows 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 FrameworkSupported by Portable Class LibraryGetBaseExceptionWhen 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 FrameworkSupported by Portable Class LibraryGetHashCodeServes 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 FrameworkSupported by Portable Class LibraryGetTypeGets the runtime type of the current instance. (Inherited from Exception.)

In XNA Framework 3.0, this member is inherited from Object..::.GetType()()().


In Portable Class Library Portable Class Library, this member is inherited from Object..::.GetType()()().
Protected methodSupported by the XNA FrameworkSupported by Portable Class LibraryMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by the XNA FrameworkSupported by Portable Class LibraryToStringCreates 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 following Microsoft intermediate (MSIL) instructions throw OutOfMemoryException :

  • box

  • newarr

  • newobj

OutOfMemoryException uses the HRESULT COR_E_OUTOFMEMORY, which has the value 0x8007000E.

For a list of initial property values for an instance of OutOfMemoryException, see the OutOfMemoryException constructors.

NoteNote

The value of the inherited Data property is always nullNothingnullptra null reference (Nothing in Visual Basic).

.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

Portable Class Library

Supported in: Portable Class Library

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
OutOfMemoryException (Clase)

Excepción que se produce cuando no hay suficiente memoria para continuar con la ejecución de un programa.

System..::.Object
  System..::.Exception
    System..::.SystemException
      System..::.OutOfMemoryException
        System..::.InsufficientMemoryException

Espacio de nombres:  System
Ensamblado:  mscorlib (en mscorlib.dll)
Visual Basic
<SerializableAttribute> _
<ComVisibleAttribute(True)> _
Public Class OutOfMemoryException _
    Inherits SystemException
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
public class OutOfMemoryException : SystemException
Visual C++
[SerializableAttribute]
[ComVisibleAttribute(true)]
public ref class OutOfMemoryException : public SystemException
F#
[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type OutOfMemoryException =  
    class
        inherit SystemException
    end

El tipo OutOfMemoryException expone los siguientes miembros.

  NombreDescripción
Método públicoCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifOutOfMemoryException()()()Inicializa una nueva instancia de la clase OutOfMemoryException.
Método públicoCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifOutOfMemoryException(String)Inicializa una nueva instancia de la clase OutOfMemoryException con el mensaje de error especificado.
Método protegidoOutOfMemoryException(SerializationInfo, StreamingContext)Inicializa una nueva instancia de la clase OutOfMemoryException con datos serializados.
Método públicoCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifOutOfMemoryException(String, Exception)Inicializa una nueva instancia de la clase OutOfMemoryException 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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifHResultObtiene 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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifInnerExceptionObtiene la instancia Exception que produjo la excepción actual. (Se hereda de Exception).
Propiedad públicaCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifMessageObtiene 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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifStackTraceObtiene 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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifEquals(Object)Determina si el objeto Object especificado es igual al objeto Object actual. (Se hereda de Object).
Método protegidoCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifFinalizePermite 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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifGetBaseExceptionCuando 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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifGetHashCodeActú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 Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifGetTypeObtiene 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()()().


En  , este miembro se hereda de Object..::.GetType()()().
Método protegidoCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifMemberwiseCloneCrea una copia superficial del objeto Object actual. (Se hereda de Object).
Método públicoCompatible con XNA Framework5afc3sdf.PortableClassLibrary(es-es,VS.100).gifToStringCrea 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

Las siguientes instrucciones del Lenguaje intermedio de Microsoft (MSIL) producen OutOfMemoryException:

  • box

  • newarr

  • newobj

OutOfMemoryException utiliza HRESULT COR_E_OUTOFMEMORY, que tiene el valor 0x80007000E.

Para obtener una lista con los valores iniciales de las propiedades de una instancia de OutOfMemoryException, vea los constructores OutOfMemoryException.

NotaNota

El valor de la propiedad heredad Data es siempre nullNothingnullptrreferencia null (Nothing en Visual Basic).

.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

Compatible con:

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