Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedStringLookup.cs
- SecondaryViewProvider.cs
- EventLogPropertySelector.cs
- DataBoundControl.cs
- CryptoProvider.cs
- StorageMappingFragment.cs
- FontSizeConverter.cs
- DefinitionUpdate.cs
- ListBindableAttribute.cs
- AsymmetricSignatureDeformatter.cs
- SqlDataSourceStatusEventArgs.cs
- BinaryFormatterWriter.cs
- EncryptedPackageFilter.cs
- DataSourceHelper.cs
- RangeValidator.cs
- XmlSerializationReader.cs
- WinCategoryAttribute.cs
- RequestCachePolicy.cs
- RadioButtonRenderer.cs
- RootBuilder.cs
- SplineKeyFrames.cs
- DataSourceIDConverter.cs
- PropertyMap.cs
- ZoneMembershipCondition.cs
- DataGridViewButtonCell.cs
- nulltextnavigator.cs
- _FixedSizeReader.cs
- KeyboardEventArgs.cs
- IdentityReference.cs
- ScalarRestriction.cs
- DayRenderEvent.cs
- BindableTemplateBuilder.cs
- ShadowGlyph.cs
- SafeArrayTypeMismatchException.cs
- ToolStripDropDown.cs
- SystemInfo.cs
- AppDomainAttributes.cs
- ReadOnlyCollection.cs
- ApplicationFileParser.cs
- SqlTriggerContext.cs
- Encoder.cs
- WCFServiceClientProxyGenerator.cs
- PkcsMisc.cs
- TextBoxBase.cs
- GridViewRow.cs
- XmlSchemaElement.cs
- _OverlappedAsyncResult.cs
- SelectionEditor.cs
- TextEditorLists.cs
- IDictionary.cs
- ImpersonateTokenRef.cs
- DynamicControl.cs
- ListViewItem.cs
- BehaviorEditorPart.cs
- XmlSchemaNotation.cs
- HandoffBehavior.cs
- ExceptionValidationRule.cs
- JobStaple.cs
- PaginationProgressEventArgs.cs
- SiteMapNodeItem.cs
- ControllableStoryboardAction.cs
- xml.cs
- VisualStyleInformation.cs
- Filter.cs
- ToolStripRendererSwitcher.cs
- RewritingProcessor.cs
- SafeNativeMethods.cs
- GridViewPageEventArgs.cs
- MsmqInputSessionChannel.cs
- DesignConnection.cs
- TreeChangeInfo.cs
- SoapExtensionStream.cs
- FileDialogCustomPlace.cs
- XmlSigningNodeWriter.cs
- CfgParser.cs
- MaterialCollection.cs
- EventLogPermissionAttribute.cs
- DataGridViewSortCompareEventArgs.cs
- ManagementObjectCollection.cs
- ListContractAdapter.cs
- Matrix.cs
- CombinedGeometry.cs
- ItemCollection.cs
- CheckBoxBaseAdapter.cs
- CodeCatchClause.cs
- Ref.cs
- UmAlQuraCalendar.cs
- FreezableDefaultValueFactory.cs
- MD5CryptoServiceProvider.cs
- HtmlMeta.cs
- TableRowsCollectionEditor.cs
- SectionInformation.cs
- IdentifierElement.cs
- ListSourceHelper.cs
- elementinformation.cs
- PolicyLevel.cs
- SimpleNameService.cs
- SocketAddress.cs
- formatter.cs
- SafeProcessHandle.cs