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
- SingleAnimation.cs
- AncestorChangedEventArgs.cs
- UnsafeNativeMethods.cs
- StrongNameKeyPair.cs
- SqlReferenceCollection.cs
- iisPickupDirectory.cs
- Int64Storage.cs
- DoubleCollectionConverter.cs
- DataGridTextBox.cs
- UdpSocket.cs
- RulePatternOps.cs
- HostSecurityManager.cs
- UTF7Encoding.cs
- MappingException.cs
- VisualTreeUtils.cs
- BindStream.cs
- RegexBoyerMoore.cs
- PasswordRecoveryDesigner.cs
- PointCollection.cs
- ExtensibleClassFactory.cs
- Normalization.cs
- cookieexception.cs
- IQueryable.cs
- ResourceExpressionEditor.cs
- hwndwrapper.cs
- NameObjectCollectionBase.cs
- Input.cs
- AutomationIdentifierGuids.cs
- Menu.cs
- nulltextcontainer.cs
- CalendarDay.cs
- TextAction.cs
- ProcessThread.cs
- MouseWheelEventArgs.cs
- sortedlist.cs
- RangeValueProviderWrapper.cs
- ProviderBase.cs
- RemoteX509AsymmetricSecurityKey.cs
- ExpressionPrefixAttribute.cs
- ResXResourceReader.cs
- IncrementalHitTester.cs
- BeginStoryboard.cs
- WebPartUtil.cs
- DelegatedStream.cs
- Point3DAnimation.cs
- SetUserLanguageRequest.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- XmlEncoding.cs
- CapabilitiesPattern.cs
- ExponentialEase.cs
- Opcode.cs
- FontWeightConverter.cs
- RotationValidation.cs
- VisualCollection.cs
- UpdatePanelControlTrigger.cs
- EUCJPEncoding.cs
- Component.cs
- HttpVersion.cs
- Events.cs
- Baml2006ReaderSettings.cs
- DbModificationCommandTree.cs
- Int16Storage.cs
- UiaCoreTypesApi.cs
- BidOverLoads.cs
- ApplicationSettingsBase.cs
- DbDataReader.cs
- ArrangedElement.cs
- BitmapSourceSafeMILHandle.cs
- BrowserCapabilitiesFactoryBase.cs
- ExpanderAutomationPeer.cs
- MatrixAnimationUsingPath.cs
- SqlClientPermission.cs
- ErrorProvider.cs
- IdentityReference.cs
- Cursors.cs
- CodeVariableReferenceExpression.cs
- MailMessageEventArgs.cs
- DiscoveryReference.cs
- BridgeDataReader.cs
- DialogResultConverter.cs
- ComponentEditorPage.cs
- CachedTypeface.cs
- ColorConverter.cs
- DynamicControlParameter.cs
- XPathNode.cs
- CheckBox.cs
- UnmanagedMemoryStreamWrapper.cs
- Binding.cs
- DataServiceRequest.cs
- InfoCardTraceRecord.cs
- AsmxEndpointPickerExtension.cs
- X509ChainElement.cs
- Parameter.cs
- XmlQueryRuntime.cs
- GetWinFXPath.cs
- EntityDesignerDataSourceView.cs
- DeriveBytes.cs
- DataGridTableCollection.cs
- CustomDictionarySources.cs
- WebBrowserNavigatedEventHandler.cs