Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReflectTypeDescriptionProvider.cs
- QuadraticBezierSegment.cs
- HwndSourceKeyboardInputSite.cs
- ToolStripItemTextRenderEventArgs.cs
- ErrorLog.cs
- ButtonStandardAdapter.cs
- QueryOperator.cs
- ExpressionEditorAttribute.cs
- WebScriptMetadataMessage.cs
- _Semaphore.cs
- SyndicationLink.cs
- diagnosticsswitches.cs
- HostingEnvironment.cs
- VisualTransition.cs
- TimeoutValidationAttribute.cs
- FrameworkTextComposition.cs
- FixedSOMTextRun.cs
- Block.cs
- WindowsSlider.cs
- PassportAuthentication.cs
- PagedDataSource.cs
- mediaclock.cs
- HttpCacheParams.cs
- EventData.cs
- TreeNodeEventArgs.cs
- AppSecurityManager.cs
- DocumentPage.cs
- ViewEventArgs.cs
- XsltConvert.cs
- Literal.cs
- SecurityContextSecurityTokenAuthenticator.cs
- WebControlAdapter.cs
- TextDecorationUnitValidation.cs
- XpsResourceDictionary.cs
- SourceItem.cs
- GridViewRow.cs
- glyphs.cs
- WebConfigurationHost.cs
- DragEvent.cs
- ValidationSummary.cs
- CheckedPointers.cs
- DesignerActionUIStateChangeEventArgs.cs
- ResourceAssociationType.cs
- FormsAuthenticationModule.cs
- NegatedConstant.cs
- TextEffectCollection.cs
- messageonlyhwndwrapper.cs
- Pair.cs
- ScrollChangedEventArgs.cs
- NamespaceEmitter.cs
- DefaultHttpHandler.cs
- SymbolType.cs
- FillBehavior.cs
- LoadMessageLogger.cs
- Cursor.cs
- NativeMethods.cs
- XmlDictionaryWriter.cs
- RewritingProcessor.cs
- XmlUnspecifiedAttribute.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- CodeCompiler.cs
- ElapsedEventArgs.cs
- CallContext.cs
- CompilerResults.cs
- OdbcCommand.cs
- Positioning.cs
- Span.cs
- DiscoveryDocument.cs
- BrushMappingModeValidation.cs
- TdsParameterSetter.cs
- BamlResourceContent.cs
- AssociationSet.cs
- FilterElement.cs
- AspNetRouteServiceHttpHandler.cs
- TextRunProperties.cs
- WpfKnownTypeInvoker.cs
- ProfessionalColors.cs
- WebPartMinimizeVerb.cs
- KnownIds.cs
- SafeRightsManagementQueryHandle.cs
- NativeMethods.cs
- RegexCapture.cs
- HttpAsyncResult.cs
- WebBrowsableAttribute.cs
- ScrollEvent.cs
- AccessorTable.cs
- UnsafeNativeMethods.cs
- ProviderIncompatibleException.cs
- SystemDropShadowChrome.cs
- DataControlHelper.cs
- AuthenticatedStream.cs
- XsdBuilder.cs
- PerformanceCounterCategory.cs
- Adorner.cs
- TimeIntervalCollection.cs
- CubicEase.cs
- WindowsListViewScroll.cs
- HMAC.cs
- HtmlDocument.cs
- Storyboard.cs