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
- XslAstAnalyzer.cs
- QilBinary.cs
- basevalidator.cs
- PowerModeChangedEventArgs.cs
- HeaderedItemsControl.cs
- DPTypeDescriptorContext.cs
- UserInitiatedNavigationPermission.cs
- Hyperlink.cs
- OleDbCommandBuilder.cs
- ListViewGroupItemCollection.cs
- FontDialog.cs
- ObjectDataSourceMethodEventArgs.cs
- StatusBarPanelClickEvent.cs
- HelpInfo.cs
- SecurityTokenException.cs
- CodeParameterDeclarationExpression.cs
- RtfToXamlReader.cs
- ArgIterator.cs
- URLMembershipCondition.cs
- StrokeCollection.cs
- SafeNativeMethodsOther.cs
- XmlEnumAttribute.cs
- InkCanvasAutomationPeer.cs
- Vars.cs
- CollectionBuilder.cs
- XmlComplianceUtil.cs
- SimpleRecyclingCache.cs
- DbConnectionPoolOptions.cs
- XPathDocumentIterator.cs
- OuterProxyWrapper.cs
- LinqDataSourceView.cs
- PageParser.cs
- StandardCommandToolStripMenuItem.cs
- SingleAnimation.cs
- SafeHandles.cs
- DbConnectionStringBuilder.cs
- RegistryKey.cs
- TextProperties.cs
- MessageAction.cs
- TypeName.cs
- PropertyItemInternal.cs
- DataControlCommands.cs
- StylusButtonCollection.cs
- NumberFormatter.cs
- SessionStateContainer.cs
- ConsumerConnectionPoint.cs
- DurableOperationAttribute.cs
- TemplateField.cs
- AudioSignalProblemOccurredEventArgs.cs
- AdapterUtil.cs
- ObjectMemberMapping.cs
- TemplateColumn.cs
- ProfileSettingsCollection.cs
- XmlSchemaAttributeGroup.cs
- SchemaAttDef.cs
- PageBreakRecord.cs
- SelectionProviderWrapper.cs
- UIntPtr.cs
- PrintDocument.cs
- SchemeSettingElement.cs
- LayoutTable.cs
- XmlSerializerNamespaces.cs
- Partitioner.cs
- IconConverter.cs
- Expression.cs
- AesCryptoServiceProvider.cs
- HostingEnvironmentSection.cs
- SqlUDTStorage.cs
- HttpCookiesSection.cs
- DataQuery.cs
- SQLUtility.cs
- TraceListeners.cs
- InvalidAsynchronousStateException.cs
- EntityTransaction.cs
- X509SecurityToken.cs
- FormsAuthenticationModule.cs
- Camera.cs
- MissingFieldException.cs
- CodeDirectiveCollection.cs
- InvalidPrinterException.cs
- XmlChoiceIdentifierAttribute.cs
- ToolboxSnapDragDropEventArgs.cs
- ImageSourceConverter.cs
- DocumentApplication.cs
- MoveSizeWinEventHandler.cs
- CodeDomConfigurationHandler.cs
- EntityConnectionStringBuilder.cs
- QilIterator.cs
- FrameworkTemplate.cs
- smtppermission.cs
- EventLogTraceListener.cs
- HttpRequest.cs
- DataMemberFieldEditor.cs
- WinInet.cs
- Gdiplus.cs
- BrowserTree.cs
- EntityChangedParams.cs
- CodeTypeMember.cs
- SimpleWebHandlerParser.cs
- GraphicsContainer.cs