Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ListSortDescription.cs
- TimeSpanOrInfiniteConverter.cs
- KnownTypeHelper.cs
- CultureTableRecord.cs
- OleDbRowUpdatingEvent.cs
- TargetException.cs
- RegistrationServices.cs
- XmlEncodedRawTextWriter.cs
- ICollection.cs
- DataService.cs
- MemoryMappedView.cs
- EmptyStringExpandableObjectConverter.cs
- StringCollection.cs
- XmlSchemaAnyAttribute.cs
- TreeNodeMouseHoverEvent.cs
- EmbeddedObject.cs
- Int16Storage.cs
- EventDescriptor.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- OrderedEnumerableRowCollection.cs
- HatchBrush.cs
- RowParagraph.cs
- ConfigurationPropertyCollection.cs
- SignatureDescription.cs
- DataGridItem.cs
- SrgsNameValueTag.cs
- SqlTransaction.cs
- ApplicationContext.cs
- CollectionViewGroupRoot.cs
- CodeTypeMemberCollection.cs
- ToolStripContainer.cs
- IntSecurity.cs
- EnumConverter.cs
- HttpCachePolicyWrapper.cs
- InkCanvasInnerCanvas.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- StorageMappingItemCollection.cs
- RayHitTestParameters.cs
- RtType.cs
- BaseEntityWrapper.cs
- PageParser.cs
- WebPartAuthorizationEventArgs.cs
- MetadataException.cs
- BindUriHelper.cs
- Enumerable.cs
- StrongNameUtility.cs
- BrowserCapabilitiesFactory.cs
- SystemThemeKey.cs
- AccessDataSourceWizardForm.cs
- AsymmetricSignatureFormatter.cs
- TrackingAnnotationCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ThemeDirectoryCompiler.cs
- XmlQualifiedName.cs
- BaseProcessor.cs
- Listener.cs
- WindowsListViewSubItem.cs
- KeyBinding.cs
- PermissionToken.cs
- StartFileNameEditor.cs
- SoapSchemaMember.cs
- CompositionDesigner.cs
- PrefixQName.cs
- MobileTextWriter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DockProviderWrapper.cs
- PageRanges.cs
- RuntimeConfig.cs
- NeutralResourcesLanguageAttribute.cs
- Assert.cs
- UserControlDocumentDesigner.cs
- SharedPerformanceCounter.cs
- XmlSchemaValidator.cs
- ResXResourceWriter.cs
- GroupDescription.cs
- TableProvider.cs
- Pen.cs
- WorkflowServiceHost.cs
- AttributeProviderAttribute.cs
- Table.cs
- WrappedOptions.cs
- LongValidatorAttribute.cs
- ListViewTableCell.cs
- TableLayoutStyleCollection.cs
- ContentWrapperAttribute.cs
- MatrixConverter.cs
- shaperfactoryquerycachekey.cs
- FlowDocumentReaderAutomationPeer.cs
- ClientScriptManagerWrapper.cs
- AssociationSetEnd.cs
- ListViewItem.cs
- StylusPointProperty.cs
- CollectionChangedEventManager.cs
- CombinedHttpChannel.cs
- ListViewItem.cs
- Region.cs
- ExpanderAutomationPeer.cs
- MouseGestureValueSerializer.cs
- RectKeyFrameCollection.cs
- SqlServices.cs