Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TimeSpan.cs
- PointF.cs
- CustomAttribute.cs
- SynchronizationValidator.cs
- WebControlAdapter.cs
- ConfigXmlSignificantWhitespace.cs
- TracePayload.cs
- UserControlParser.cs
- CellQuery.cs
- TextBlock.cs
- EventLogPermissionAttribute.cs
- GregorianCalendarHelper.cs
- ValueConversionAttribute.cs
- CodeTypeParameter.cs
- ParallelEnumerableWrapper.cs
- DesignerCommandAdapter.cs
- ContainerFilterService.cs
- ErrorHandler.cs
- AppDomainUnloadedException.cs
- Pair.cs
- InkSerializer.cs
- PagePropertiesChangingEventArgs.cs
- WaitHandleCannotBeOpenedException.cs
- NameObjectCollectionBase.cs
- TraceLog.cs
- DesignerSelectionListAdapter.cs
- EntityClassGenerator.cs
- URI.cs
- RequiredAttributeAttribute.cs
- DataRecord.cs
- SamlDoNotCacheCondition.cs
- InternalDispatchObject.cs
- wgx_render.cs
- AmbientValueAttribute.cs
- GridViewSelectEventArgs.cs
- SQLBoolean.cs
- CodeAttributeArgumentCollection.cs
- Decimal.cs
- AccessDataSourceView.cs
- EFAssociationProvider.cs
- DomainUpDown.cs
- BindStream.cs
- GlyphingCache.cs
- DesignerSerializationOptionsAttribute.cs
- WebFaultClientMessageInspector.cs
- SessionStateSection.cs
- DataGridViewDataErrorEventArgs.cs
- InheritanceAttribute.cs
- Paragraph.cs
- PageThemeParser.cs
- TypeSource.cs
- CryptoProvider.cs
- Serializer.cs
- CursorConverter.cs
- CardSpaceShim.cs
- EventWaitHandle.cs
- VisemeEventArgs.cs
- ToolStripRenderEventArgs.cs
- unsafenativemethodstextservices.cs
- SessionStateItemCollection.cs
- TextEndOfParagraph.cs
- PropertyDescriptorCollection.cs
- CriticalHandle.cs
- DispatcherFrame.cs
- CookielessHelper.cs
- GlyphCache.cs
- TokenizerHelper.cs
- FunctionImportElement.cs
- SudsCommon.cs
- PeerToPeerException.cs
- TypeResolvingOptions.cs
- FormViewDeleteEventArgs.cs
- OutOfMemoryException.cs
- ElementsClipboardData.cs
- TemplateInstanceAttribute.cs
- HttpRawResponse.cs
- WorkflowEnvironment.cs
- QuaternionRotation3D.cs
- WindowManager.cs
- EngineSiteSapi.cs
- followingsibling.cs
- DirectoryObjectSecurity.cs
- NestedContainer.cs
- FixedSOMImage.cs
- DispatcherSynchronizationContext.cs
- SettingsBindableAttribute.cs
- RestClientProxyHandler.cs
- ProfileModule.cs
- MaterialGroup.cs
- LambdaSerializationException.cs
- QuerySafeNavigator.cs
- DataTable.cs
- ThicknessKeyFrameCollection.cs
- DesignerLabelAdapter.cs
- QuaternionAnimation.cs
- UIElement3DAutomationPeer.cs
- EntitySqlException.cs
- IdentityModelStringsVersion1.cs
- BitSet.cs
- Helper.cs