Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WindowsIdentity.cs
- WebException.cs
- X509Chain.cs
- CodeTypeOfExpression.cs
- SafeHGlobalHandleCritical.cs
- connectionpool.cs
- FormatControl.cs
- MLangCodePageEncoding.cs
- RegexCompilationInfo.cs
- XmlTypeMapping.cs
- Oid.cs
- QilDataSource.cs
- XPathPatternParser.cs
- LoginUtil.cs
- CuspData.cs
- ElementsClipboardData.cs
- WorkflowDispatchContext.cs
- entityreference_tresulttype.cs
- ObsoleteAttribute.cs
- CodeSnippetStatement.cs
- ServiceEndpointAssociationProvider.cs
- GlobalId.cs
- AnimatedTypeHelpers.cs
- XmlAttribute.cs
- Html32TextWriter.cs
- GeneratedCodeAttribute.cs
- ActiveXSite.cs
- UIPermission.cs
- TiffBitmapDecoder.cs
- CombinedGeometry.cs
- WindowPattern.cs
- PackageDigitalSignature.cs
- _NetRes.cs
- CompressStream.cs
- TaskCanceledException.cs
- DbProviderFactory.cs
- WeakHashtable.cs
- EntityStoreSchemaFilterEntry.cs
- Point3DCollection.cs
- AssemblyCollection.cs
- SessionStateSection.cs
- TreeViewEvent.cs
- StringHandle.cs
- SessionChannels.cs
- ShadowGlyph.cs
- DependencySource.cs
- ExtenderControl.cs
- RegexFCD.cs
- PenCursorManager.cs
- CorePropertiesFilter.cs
- SqlInternalConnection.cs
- MissingMethodException.cs
- FixedLineResult.cs
- WindowsHyperlink.cs
- CopyNodeSetAction.cs
- CustomAttributeFormatException.cs
- WindowHideOrCloseTracker.cs
- RSAPKCS1KeyExchangeFormatter.cs
- VectorAnimation.cs
- SmtpLoginAuthenticationModule.cs
- GcHandle.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- MultiByteCodec.cs
- PowerModeChangedEventArgs.cs
- NumericUpDown.cs
- CngKey.cs
- EmptyEnumerable.cs
- CodeMemberProperty.cs
- NegationPusher.cs
- Lookup.cs
- AssociativeAggregationOperator.cs
- base64Transforms.cs
- DataGridViewTopRowAccessibleObject.cs
- FormatSettings.cs
- PropertyExpression.cs
- RequestQueryParser.cs
- DNS.cs
- PointF.cs
- ValidatedControlConverter.cs
- StringValidator.cs
- CommandEventArgs.cs
- TemplatePagerField.cs
- ViewKeyConstraint.cs
- SoapCodeExporter.cs
- SignedInfo.cs
- FormViewDeleteEventArgs.cs
- GroupItem.cs
- DataContract.cs
- InvalidBodyAccessException.cs
- ToolStripSeparatorRenderEventArgs.cs
- MetadataItemCollectionFactory.cs
- CollectionChangedEventManager.cs
- XmlEnumAttribute.cs
- SerialPort.cs
- NullExtension.cs
- SQLResource.cs
- OrderPreservingMergeHelper.cs
- EnumMember.cs
- DesignDataSource.cs
- Application.cs