Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartCancelEventArgs.cs
- NameValueFileSectionHandler.cs
- Argument.cs
- HostAdapter.cs
- LifetimeServices.cs
- DispatchChannelSink.cs
- ScrollChrome.cs
- StorageEntityTypeMapping.cs
- DatagramAdapter.cs
- ArithmeticException.cs
- TransactionFlowProperty.cs
- ProxyWebPartConnectionCollection.cs
- DataGridItemCollection.cs
- InfoCardListRequest.cs
- NavigationWindowAutomationPeer.cs
- CatalogZoneDesigner.cs
- OracleConnectionStringBuilder.cs
- NumberSubstitution.cs
- MenuAutomationPeer.cs
- XmlParserContext.cs
- RegistryKey.cs
- DataGridViewImageColumn.cs
- ListViewSelectEventArgs.cs
- IncomingWebResponseContext.cs
- OracleCommand.cs
- RequestBringIntoViewEventArgs.cs
- ToggleProviderWrapper.cs
- InkSerializer.cs
- CssStyleCollection.cs
- rsa.cs
- FileVersionInfo.cs
- HtmlGenericControl.cs
- PropertyInfoSet.cs
- _SpnDictionary.cs
- CaseInsensitiveComparer.cs
- BamlResourceContent.cs
- PathFigure.cs
- TransformerInfoCollection.cs
- Matrix.cs
- OutputCacheSettings.cs
- SafeCloseHandleCritical.cs
- SHA384.cs
- DataBindingsDialog.cs
- EntityCommandCompilationException.cs
- DiscoveryRequestHandler.cs
- ConfigurationException.cs
- TemplateNameScope.cs
- NavigationWindowAutomationPeer.cs
- PackWebRequest.cs
- ProcessInfo.cs
- DictionaryContent.cs
- CompositeControl.cs
- TabControl.cs
- ReachIDocumentPaginatorSerializer.cs
- Tokenizer.cs
- SecurityUtils.cs
- MatrixIndependentAnimationStorage.cs
- ServiceDurableInstanceContextProvider.cs
- TextDecorationCollection.cs
- HuffModule.cs
- Stackframe.cs
- XmlSchemaSet.cs
- Utils.cs
- LiteralControl.cs
- _SpnDictionary.cs
- EndpointAddress.cs
- DirectionalLight.cs
- TemplatePagerField.cs
- InvalidPrinterException.cs
- Label.cs
- RefType.cs
- HttpConfigurationContext.cs
- KerberosTicketHashIdentifierClause.cs
- TypeExtension.cs
- ValuePatternIdentifiers.cs
- HtmlTableRowCollection.cs
- BindingCollection.cs
- ExecutorLocksHeldException.cs
- EditorAttribute.cs
- ControlParameter.cs
- Trustee.cs
- Repeater.cs
- BitmapImage.cs
- RepeatButtonAutomationPeer.cs
- SafeRegistryHandle.cs
- ActivityDesignerLayoutSerializers.cs
- ArrangedElementCollection.cs
- GlobalProxySelection.cs
- DoubleAnimation.cs
- TrackBar.cs
- TemplateControlCodeDomTreeGenerator.cs
- ConfigXmlWhitespace.cs
- HtmlInputPassword.cs
- SurrogateSelector.cs
- ReadOnlyCollectionBase.cs
- InkPresenter.cs
- Propagator.ExtentPlaceholderCreator.cs
- LocalFileSettingsProvider.cs
- wgx_exports.cs
- MemberProjectionIndex.cs