Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ThreadAbortException.cs
- HtmlToClrEventProxy.cs
- GeometryHitTestResult.cs
- XmlBinaryWriterSession.cs
- SqlTriggerContext.cs
- DbConnectionFactory.cs
- Vector3DAnimationBase.cs
- SpinLock.cs
- CompilerErrorCollection.cs
- DataStreamFromComStream.cs
- Utils.cs
- StandardCommands.cs
- FixedPageStructure.cs
- RegularExpressionValidator.cs
- _NegoStream.cs
- SmtpReplyReader.cs
- StringResourceManager.cs
- GenerateHelper.cs
- URLString.cs
- GridViewPageEventArgs.cs
- ByteStreamGeometryContext.cs
- XsltFunctions.cs
- CollectionViewSource.cs
- SerializationException.cs
- IndividualDeviceConfig.cs
- PolyLineSegmentFigureLogic.cs
- UserNameServiceElement.cs
- DrawingContextWalker.cs
- SqlCharStream.cs
- TextDecorationCollection.cs
- AtomMaterializerLog.cs
- ThaiBuddhistCalendar.cs
- ToolStripAdornerWindowService.cs
- TaiwanCalendar.cs
- DataGridViewColumnEventArgs.cs
- MarshalByValueComponent.cs
- ResourceIDHelper.cs
- PenThreadWorker.cs
- ActiveXContainer.cs
- ServiceModelEnumValidator.cs
- XmlSchemaAttributeGroupRef.cs
- TemplateDefinition.cs
- PropertyConverter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ObjectStateManager.cs
- BamlStream.cs
- UnsafeNativeMethods.cs
- DataControlCommands.cs
- ToolStripDropDownButton.cs
- RegularExpressionValidator.cs
- XmlSignatureManifest.cs
- SchemaImporterExtensionsSection.cs
- FileSystemEventArgs.cs
- AllMembershipCondition.cs
- ObjectStateEntryDbDataRecord.cs
- DebugHandleTracker.cs
- TableFieldsEditor.cs
- SimpleType.cs
- SharedPerformanceCounter.cs
- BooleanStorage.cs
- EncodingDataItem.cs
- HyperLinkStyle.cs
- PerformanceCounterCategory.cs
- PolyLineSegment.cs
- DXD.cs
- ListViewCancelEventArgs.cs
- InputLanguageManager.cs
- ChangeInterceptorAttribute.cs
- BuildProviderCollection.cs
- ChangeBlockUndoRecord.cs
- BrowserDefinitionCollection.cs
- Int32Storage.cs
- OleDbConnectionInternal.cs
- FlowPosition.cs
- XmlHelper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TraceHandler.cs
- LayoutExceptionEventArgs.cs
- SettingsPropertyCollection.cs
- Column.cs
- WindowsRegion.cs
- CodeConstructor.cs
- OptimisticConcurrencyException.cs
- _MultipleConnectAsync.cs
- ServiceTimeoutsElement.cs
- ColorContext.cs
- SemaphoreFullException.cs
- StringAnimationUsingKeyFrames.cs
- WebRequestModuleElementCollection.cs
- SecureEnvironment.cs
- AmbientLight.cs
- QuinticEase.cs
- AppDomainAttributes.cs
- XPathDescendantIterator.cs
- ConcatQueryOperator.cs
- HtmlMeta.cs
- BaseDataBoundControl.cs
- FixedNode.cs
- RuntimeComponentFilter.cs
- ISessionStateStore.cs