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
- TypeElement.cs
- SystemIcmpV4Statistics.cs
- HttpCacheParams.cs
- CheckedListBox.cs
- ClientScriptManager.cs
- PackageRelationship.cs
- DictionaryTraceRecord.cs
- AssertFilter.cs
- LinkLabelLinkClickedEvent.cs
- Lease.cs
- MessageSmuggler.cs
- ECDiffieHellmanPublicKey.cs
- MatrixAnimationUsingPath.cs
- entityreference_tresulttype.cs
- DateTimeAutomationPeer.cs
- Queue.cs
- ErrorFormatterPage.cs
- LookupNode.cs
- PrintPreviewGraphics.cs
- PropertyFilterAttribute.cs
- XmlSchemaObjectCollection.cs
- OleDbError.cs
- URL.cs
- CollectionView.cs
- XmlIgnoreAttribute.cs
- StylesEditorDialog.cs
- AsymmetricCryptoHandle.cs
- SqlCacheDependencySection.cs
- StateManagedCollection.cs
- HostedElements.cs
- WebPartEditorApplyVerb.cs
- ConfigurationManagerInternal.cs
- coordinatorfactory.cs
- Polyline.cs
- TriggerActionCollection.cs
- SessionPageStatePersister.cs
- SuppressMessageAttribute.cs
- ScrollPatternIdentifiers.cs
- dbdatarecord.cs
- BamlBinaryWriter.cs
- SiteMapDataSource.cs
- DataContractSet.cs
- DoubleAnimationBase.cs
- HitTestParameters.cs
- FakeModelPropertyImpl.cs
- UIElement3DAutomationPeer.cs
- CommandID.cs
- Stroke2.cs
- QilInvoke.cs
- ChannelBinding.cs
- UrlPath.cs
- Rect.cs
- VisualTreeHelper.cs
- LookupNode.cs
- PeerName.cs
- ProgramPublisher.cs
- LineBreakRecord.cs
- StreamingContext.cs
- ObsoleteAttribute.cs
- ContractCodeDomInfo.cs
- WebPartConnection.cs
- DbDataReader.cs
- ListBase.cs
- precedingquery.cs
- PropertyConverter.cs
- COSERVERINFO.cs
- ImageMapEventArgs.cs
- Regex.cs
- DynamicRouteExpression.cs
- ForEachAction.cs
- PeerNameRecord.cs
- Mappings.cs
- CallContext.cs
- HiddenField.cs
- MessageFilterException.cs
- JapaneseCalendar.cs
- XmlSchemaDocumentation.cs
- RoleBoolean.cs
- GridViewUpdateEventArgs.cs
- SafeMemoryMappedViewHandle.cs
- WebPartMenu.cs
- InputScope.cs
- TabControl.cs
- SearchForVirtualItemEventArgs.cs
- ContextStack.cs
- FontStyleConverter.cs
- SimpleTextLine.cs
- Line.cs
- DocumentSequence.cs
- DelayedRegex.cs
- ScriptResourceInfo.cs
- RemotingConfiguration.cs
- TeredoHelper.cs
- CryptoHandle.cs
- ViewStateException.cs
- PocoEntityKeyStrategy.cs
- XmlSchemaSimpleContentExtension.cs
- LayoutDump.cs
- TimelineGroup.cs
- TypeBrowserDialog.cs