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
- sqlser.cs
- UpDownEvent.cs
- UnicodeEncoding.cs
- CssStyleCollection.cs
- PropertyEntry.cs
- ReadOnlyDictionary.cs
- Flowchart.cs
- TaiwanCalendar.cs
- ProtocolElement.cs
- RegisteredExpandoAttribute.cs
- dataSvcMapFileLoader.cs
- TextEffect.cs
- RichTextBox.cs
- SuppressMessageAttribute.cs
- TextEditorTyping.cs
- Pipe.cs
- WindowsAuthenticationEventArgs.cs
- SelectionProviderWrapper.cs
- XmlConverter.cs
- URLString.cs
- XmlHierarchicalEnumerable.cs
- ReadWriteObjectLock.cs
- TextPointerBase.cs
- UnsafeNetInfoNativeMethods.cs
- PageStatePersister.cs
- _IPv4Address.cs
- SchemaElement.cs
- XmlSerializerSection.cs
- OleDbEnumerator.cs
- BitmapEditor.cs
- JournalEntryStack.cs
- InstanceCompleteException.cs
- cookie.cs
- IdlingCommunicationPool.cs
- PermissionSetEnumerator.cs
- CheckBoxAutomationPeer.cs
- COM2ColorConverter.cs
- ListParagraph.cs
- Color.cs
- elementinformation.cs
- TextTreeRootTextBlock.cs
- RadioButton.cs
- COSERVERINFO.cs
- GlobalProxySelection.cs
- BinaryHeap.cs
- RadioButton.cs
- DetailsViewPageEventArgs.cs
- AuthenticationService.cs
- ClientRuntimeConfig.cs
- HttpListenerRequest.cs
- WinCategoryAttribute.cs
- ReadOnlyCollectionBase.cs
- SqlFlattener.cs
- ContextMenu.cs
- HostingPreferredMapPath.cs
- LoadWorkflowCommand.cs
- StringPropertyBuilder.cs
- XmlRootAttribute.cs
- SQLInt64Storage.cs
- HttpWriter.cs
- ApplicationActivator.cs
- SchemaCollectionCompiler.cs
- ZipPackage.cs
- HyperLinkColumn.cs
- InputManager.cs
- DataServiceProviderMethods.cs
- DatagridviewDisplayedBandsData.cs
- mediaeventshelper.cs
- IntSecurity.cs
- CollectionType.cs
- RecordManager.cs
- ContainerFilterService.cs
- FlowLayout.cs
- OlePropertyStructs.cs
- ListViewInsertedEventArgs.cs
- graph.cs
- ProfilePropertyMetadata.cs
- HwndAppCommandInputProvider.cs
- CellPartitioner.cs
- TableCell.cs
- FlowLayoutSettings.cs
- IndexedEnumerable.cs
- NetworkStream.cs
- ProfileBuildProvider.cs
- ToolStripScrollButton.cs
- ParseHttpDate.cs
- EncodingNLS.cs
- BinaryReader.cs
- ApplicationSecurityInfo.cs
- DragDeltaEventArgs.cs
- EntityModelSchemaGenerator.cs
- ExpressionHelper.cs
- IriParsingElement.cs
- ImageCodecInfo.cs
- ListSortDescriptionCollection.cs
- ColumnProvider.cs
- GridItemCollection.cs
- DataBindingCollection.cs
- WpfPayload.cs
- MobileControlDesigner.cs