Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- Regex.cs
- RichTextBoxContextMenu.cs
- UncommonField.cs
- WmpBitmapDecoder.cs
- Registry.cs
- SqlInfoMessageEvent.cs
- DataGridViewRow.cs
- Point3DCollection.cs
- BitSet.cs
- BaseContextMenu.cs
- ProviderConnectionPointCollection.cs
- Simplifier.cs
- EnumValAlphaComparer.cs
- GlyphManager.cs
- WebPartPersonalization.cs
- HttpProfileBase.cs
- CollectionViewProxy.cs
- SerializableAttribute.cs
- Parser.cs
- QueryComponents.cs
- Attributes.cs
- DocumentGridContextMenu.cs
- ParserContext.cs
- StringResourceManager.cs
- Matrix3D.cs
- DataGridViewTopLeftHeaderCell.cs
- StringDictionaryWithComparer.cs
- XmlSchemaSimpleContentExtension.cs
- PopOutPanel.cs
- PtsContext.cs
- FeatureManager.cs
- DescendantOverDescendantQuery.cs
- StickyNote.cs
- ToolStripSplitButton.cs
- ProxyFragment.cs
- WebPartDescriptionCollection.cs
- DataStorage.cs
- SoapAttributes.cs
- ListViewGroupConverter.cs
- PatternMatchRules.cs
- VisualSerializer.cs
- CodeCatchClause.cs
- BitmapData.cs
- RelationshipSet.cs
- RecognitionResult.cs
- IBuiltInEvidence.cs
- FormView.cs
- DocumentViewerConstants.cs
- DirectoryNotFoundException.cs
- PermissionSetEnumerator.cs
- XPathPatternParser.cs
- Int32CAMarshaler.cs
- LoadedOrUnloadedOperation.cs
- Operator.cs
- CodeTypeReference.cs
- HeaderCollection.cs
- HttpWebRequestElement.cs
- MsmqMessageProperty.cs
- SessionIDManager.cs
- TargetControlTypeCache.cs
- Ticks.cs
- AppDomainFactory.cs
- ReliableSession.cs
- AsyncResult.cs
- CodePageEncoding.cs
- SymmetricAlgorithm.cs
- SqlUtils.cs
- Number.cs
- ListSortDescription.cs
- ErrorProvider.cs
- CachedPathData.cs
- AQNBuilder.cs
- DefaultExpressionVisitor.cs
- AdapterUtil.cs
- TypeViewSchema.cs
- Comparer.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- MachineSettingsSection.cs
- TimeSpanConverter.cs
- DataGridViewColumnCollectionDialog.cs
- SimpleType.cs
- LayoutManager.cs
- DragEventArgs.cs
- SatelliteContractVersionAttribute.cs
- ListViewHitTestInfo.cs
- CustomAssemblyResolver.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- PointIndependentAnimationStorage.cs
- ResourceContainer.cs
- VariableExpressionConverter.cs
- WebRequestModuleElement.cs
- SHA1.cs
- PanelDesigner.cs
- RecordBuilder.cs
- HandledEventArgs.cs
- DirectoryInfo.cs
- XmlDictionaryString.cs
- StorageEntityTypeMapping.cs
- UnicodeEncoding.cs
- RuntimeConfigLKG.cs