Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1 / InsufficientMemoryException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InsufficientMemoryException ** ** ** Purpose: The exception class for running out of memory ** but most likely in a non-fatal way that shouldn't ** be affected by escalation policy. Use this for cases ** like MemoryFailPoint or a TryAllocate method, where you ** expect OOM's with no shared state corruption and you ** want to recover from these errors. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [Serializable()] public sealed class InsufficientMemoryException : OutOfMemoryException { public InsufficientMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } private InsufficientMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: InsufficientMemoryException ** ** ** Purpose: The exception class for running out of memory ** but most likely in a non-fatal way that shouldn't ** be affected by escalation policy. Use this for cases ** like MemoryFailPoint or a TryAllocate method, where you ** expect OOM's with no shared state corruption and you ** want to recover from these errors. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [Serializable()] public sealed class InsufficientMemoryException : OutOfMemoryException { public InsufficientMemoryException() : base(GetMessageFromNativeResources(ExceptionMessageKind.OutOfMemory)) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message) : base(message) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } public InsufficientMemoryException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_INSUFFICIENTMEMORY); } private InsufficientMemoryException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ContentElement.cs
- LinkedResourceCollection.cs
- DoubleAnimationUsingPath.cs
- FileDataSourceCache.cs
- IisTraceWebEventProvider.cs
- HttpHandlerAction.cs
- NetworkInformationException.cs
- OpacityConverter.cs
- MemoryFailPoint.cs
- PrinterUnitConvert.cs
- ImageDrawing.cs
- MultipartContentParser.cs
- DataControlField.cs
- Typeface.cs
- CurrencyManager.cs
- EntityChangedParams.cs
- ClientUtils.cs
- ResourceExpressionBuilder.cs
- PropertySourceInfo.cs
- XmlTypeAttribute.cs
- SessionState.cs
- XamlLoadErrorInfo.cs
- ManagedIStream.cs
- ComplusEndpointConfigContainer.cs
- ObjectSet.cs
- basecomparevalidator.cs
- HMACMD5.cs
- XsdCachingReader.cs
- XmlSerializerVersionAttribute.cs
- HttpListenerRequest.cs
- InvalidProgramException.cs
- Base64Stream.cs
- TextBoxLine.cs
- Parser.cs
- Brush.cs
- SchemaContext.cs
- NetPeerTcpBindingCollectionElement.cs
- DelayedRegex.cs
- precedingsibling.cs
- NotFiniteNumberException.cs
- SelectedDatesCollection.cs
- CodeCompiler.cs
- MapPathBasedVirtualPathProvider.cs
- LocalizableResourceBuilder.cs
- FacetDescriptionElement.cs
- MissingMemberException.cs
- JavaScriptString.cs
- EpmSyndicationContentSerializer.cs
- XmlSchemaInclude.cs
- IgnoreFlushAndCloseStream.cs
- SqlInternalConnectionTds.cs
- XmlAttributeHolder.cs
- _ConnectionGroup.cs
- SecurityTokenException.cs
- UnknownWrapper.cs
- IIS7WorkerRequest.cs
- Point4DValueSerializer.cs
- _IPv4Address.cs
- XPathException.cs
- PopOutPanel.cs
- RequestQueue.cs
- NativeMethods.cs
- NotifyParentPropertyAttribute.cs
- EmptyEnumerator.cs
- PropertyInformation.cs
- CodeNamespace.cs
- HierarchicalDataBoundControlAdapter.cs
- Table.cs
- X509AsymmetricSecurityKey.cs
- FileFormatException.cs
- QueryResults.cs
- unsafenativemethodstextservices.cs
- NavigateEvent.cs
- TreeWalker.cs
- XPathCompileException.cs
- MessageQueueInstaller.cs
- EllipseGeometry.cs
- JsonMessageEncoderFactory.cs
- SmiContextFactory.cs
- DataColumnMappingCollection.cs
- ScaleTransform.cs
- LineSegment.cs
- CultureTableRecord.cs
- IdentityReference.cs
- ImageInfo.cs
- Bezier.cs
- WebBrowsableAttribute.cs
- LinqDataSourceDeleteEventArgs.cs
- Type.cs
- XmlObjectSerializerContext.cs
- SecuritySessionFilter.cs
- ProcessManager.cs
- SequentialActivityDesigner.cs
- FileVersionInfo.cs
- DataSourceCache.cs
- MailWriter.cs
- DataStreamFromComStream.cs
- MethodCallExpression.cs
- PrefixHandle.cs
- X509PeerCertificateAuthenticationElement.cs