Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataServiceEntityAttribute.cs
- SelectionItemPattern.cs
- TreeViewHitTestInfo.cs
- SortKey.cs
- BuildProvider.cs
- FloatAverageAggregationOperator.cs
- ListContractAdapter.cs
- XmlEncodedRawTextWriter.cs
- CollectionViewProxy.cs
- NativeMethods.cs
- FilteredReadOnlyMetadataCollection.cs
- ListViewInsertEventArgs.cs
- WorkflowValidationFailedException.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ConstructorNeedsTagAttribute.cs
- BeginStoryboard.cs
- DecimalSumAggregationOperator.cs
- TextRangeEditTables.cs
- SafeCryptHandles.cs
- BlockUIContainer.cs
- RelationshipEndCollection.cs
- NextPreviousPagerField.cs
- TextBoxRenderer.cs
- MaskDesignerDialog.cs
- ContentDisposition.cs
- HtmlInputSubmit.cs
- DataGridViewCellValueEventArgs.cs
- DataGridViewCellCollection.cs
- SafeNativeMethods.cs
- UxThemeWrapper.cs
- ProgressBar.cs
- ValidationErrorCollection.cs
- OverlappedContext.cs
- Transform3DCollection.cs
- PeerInvitationResponse.cs
- PrintController.cs
- TileModeValidation.cs
- ListBox.cs
- CodeTypeDeclarationCollection.cs
- CompatibleComparer.cs
- ClientSideQueueItem.cs
- ContainerUIElement3D.cs
- WindowsStatusBar.cs
- PropertyGroupDescription.cs
- TextSelectionProcessor.cs
- SQLGuid.cs
- CharacterBuffer.cs
- FontWeights.cs
- MenuRenderer.cs
- SByte.cs
- SmtpSection.cs
- HandlerBase.cs
- ObjectTag.cs
- WebPartHeaderCloseVerb.cs
- RuleInfoComparer.cs
- updateconfighost.cs
- BitmapEffectGeneralTransform.cs
- UrlMappingsModule.cs
- ConnectionProviderAttribute.cs
- WebControlAdapter.cs
- SectionVisual.cs
- ClassHandlersStore.cs
- SafeFileMappingHandle.cs
- ImplicitInputBrush.cs
- Keywords.cs
- ReadOnlyNameValueCollection.cs
- UpdateExpressionVisitor.cs
- RemotingSurrogateSelector.cs
- RuleInfoComparer.cs
- LayoutInformation.cs
- DivideByZeroException.cs
- DBParameter.cs
- IPPacketInformation.cs
- PointIndependentAnimationStorage.cs
- AnnotationMap.cs
- HelloOperationAsyncResult.cs
- WindowsRegion.cs
- InteropEnvironment.cs
- XPathParser.cs
- PaperSize.cs
- BamlLocalizationDictionary.cs
- UTF8Encoding.cs
- ControlUtil.cs
- PropertyManager.cs
- TextShapeableCharacters.cs
- LinkedList.cs
- ResourceDisplayNameAttribute.cs
- WCFModelStrings.Designer.cs
- OdbcRowUpdatingEvent.cs
- NotSupportedException.cs
- ControlPaint.cs
- CatalogZoneBase.cs
- TransactionManager.cs
- BinaryFormatter.cs
- SafeThemeHandle.cs
- XmlElement.cs
- ColumnHeaderConverter.cs
- DriveInfo.cs
- StreamGeometry.cs
- ISSmlParser.cs