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
- Pipe.cs
- ProgressBar.cs
- SoapFormatterSinks.cs
- UDPClient.cs
- EncryptedPackage.cs
- ListControl.cs
- DataTableReaderListener.cs
- NetDataContractSerializer.cs
- FileEnumerator.cs
- RubberbandSelector.cs
- EventMap.cs
- HtmlInputFile.cs
- SizeConverter.cs
- StrongNameHelpers.cs
- TextRangeProviderWrapper.cs
- GradientBrush.cs
- CompModSwitches.cs
- ProcessModuleCollection.cs
- ComponentEditorPage.cs
- ProjectionPruner.cs
- MediaSystem.cs
- OdbcException.cs
- XmlIlGenerator.cs
- TableLayoutCellPaintEventArgs.cs
- TextBreakpoint.cs
- TransformationRules.cs
- DependencyObjectCodeDomSerializer.cs
- AspNetRouteServiceHttpHandler.cs
- ButtonBase.cs
- Int64Animation.cs
- ItemsChangedEventArgs.cs
- ByteStream.cs
- BuildManager.cs
- Expander.cs
- ErrorFormatterPage.cs
- PermissionSet.cs
- CorePropertiesFilter.cs
- XmlSchemaAnyAttribute.cs
- metadatamappinghashervisitor.cs
- EllipticalNodeOperations.cs
- CodeTypeParameter.cs
- WebRequestModuleElement.cs
- ToolStripSettings.cs
- ListViewItemCollectionEditor.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TagPrefixCollection.cs
- RoleGroup.cs
- Model3DGroup.cs
- AuthorizationRule.cs
- TypePresenter.xaml.cs
- MatrixKeyFrameCollection.cs
- VersionUtil.cs
- DependencySource.cs
- Span.cs
- MatchingStyle.cs
- GridViewColumnCollectionChangedEventArgs.cs
- PlatformCulture.cs
- GZipStream.cs
- SchemaAttDef.cs
- NameValueSectionHandler.cs
- TraceUtils.cs
- Point3D.cs
- cache.cs
- OptimalBreakSession.cs
- Light.cs
- QueryComponents.cs
- BitmapEffectState.cs
- MonitorWrapper.cs
- UserInitiatedRoutedEventPermission.cs
- OrderingExpression.cs
- EqualityComparer.cs
- XmlQuerySequence.cs
- StylusEditingBehavior.cs
- EntityCommandCompilationException.cs
- WebUtility.cs
- DataObject.cs
- ItemDragEvent.cs
- DataObjectPastingEventArgs.cs
- altserialization.cs
- OrderPreservingPipeliningMergeHelper.cs
- ValidationHelpers.cs
- Font.cs
- RegexMatch.cs
- Button.cs
- MappedMetaModel.cs
- ChannelCacheDefaults.cs
- CroppedBitmap.cs
- TimeoutValidationAttribute.cs
- SynchronousReceiveBehavior.cs
- UserControlCodeDomTreeGenerator.cs
- ToolStripLocationCancelEventArgs.cs
- Stopwatch.cs
- FillBehavior.cs
- GridViewRowEventArgs.cs
- WorkflowInstanceTerminatedRecord.cs
- ClientUtils.cs
- FrameworkRichTextComposition.cs
- ImageAttributes.cs
- QilStrConcatenator.cs
- AsyncResult.cs