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
- TemplateNameScope.cs
- NativeMethods.cs
- XmlSchemaIdentityConstraint.cs
- AmbiguousMatchException.cs
- RoutedEvent.cs
- BamlVersionHeader.cs
- QilExpression.cs
- ReaderWriterLock.cs
- DiscoveryDocumentReference.cs
- FacetDescriptionElement.cs
- Item.cs
- ConnectionPoolRegistry.cs
- Cursor.cs
- MobileTextWriter.cs
- OleDbStruct.cs
- WindowsToolbarItemAsMenuItem.cs
- TableCellAutomationPeer.cs
- XmlSchemaObjectCollection.cs
- RelationshipWrapper.cs
- HttpSessionStateBase.cs
- PersonalizableAttribute.cs
- UnsafeNativeMethods.cs
- PageParserFilter.cs
- PersonalizablePropertyEntry.cs
- EventDescriptorCollection.cs
- Menu.cs
- XhtmlConformanceSection.cs
- CodeTypeDeclaration.cs
- Queue.cs
- XmlNamespaceMappingCollection.cs
- UITypeEditor.cs
- DataGridItem.cs
- ClassValidator.cs
- SMSvcHost.cs
- StrokeNodeData.cs
- SerializationSectionGroup.cs
- cookiecontainer.cs
- DescendantOverDescendantQuery.cs
- ConnectivityStatus.cs
- OdbcInfoMessageEvent.cs
- WindowsFormsHostPropertyMap.cs
- FocusTracker.cs
- ObjectConverter.cs
- XmlSchemaInferenceException.cs
- BidOverLoads.cs
- XamlPoint3DCollectionSerializer.cs
- login.cs
- ConfigurationSchemaErrors.cs
- ArraySegment.cs
- BuildTopDownAttribute.cs
- TextSimpleMarkerProperties.cs
- StreamGeometry.cs
- EventMap.cs
- MaterialCollection.cs
- PagerSettings.cs
- ProjectionCamera.cs
- HtmlWindow.cs
- IUnknownConstantAttribute.cs
- AppliedDeviceFiltersDialog.cs
- _NestedMultipleAsyncResult.cs
- MetadataArtifactLoaderCompositeFile.cs
- DataGridRowEventArgs.cs
- SqlMethodCallConverter.cs
- WebPartDeleteVerb.cs
- PerformanceCounterTraceRecord.cs
- RegexStringValidatorAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- Pointer.cs
- XmlDataSourceNodeDescriptor.cs
- DesignerValidatorAdapter.cs
- X509Extension.cs
- IndexOutOfRangeException.cs
- WorkItem.cs
- ConditionCollection.cs
- PassportAuthentication.cs
- Int64KeyFrameCollection.cs
- WebServiceReceive.cs
- PenLineCapValidation.cs
- VideoDrawing.cs
- BufferedGraphics.cs
- HostingEnvironmentWrapper.cs
- PrintDocument.cs
- PackagePartCollection.cs
- DelayedRegex.cs
- BasicHttpMessageSecurity.cs
- ZipIOFileItemStream.cs
- TextContainerChangedEventArgs.cs
- FixedSOMFixedBlock.cs
- SqlDelegatedTransaction.cs
- ClockController.cs
- ServiceBusyException.cs
- EpmSyndicationContentSerializer.cs
- WindowsIdentity.cs
- SemaphoreFullException.cs
- DoubleAnimationBase.cs
- MessageDecoder.cs
- InfoCardSymmetricAlgorithm.cs
- DrawingAttributes.cs
- DataGridGeneralPage.cs
- SafeCoTaskMem.cs