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
- PackageDigitalSignature.cs
- HyperLinkColumn.cs
- HelpFileFileNameEditor.cs
- GlobalId.cs
- XPathDescendantIterator.cs
- ClickablePoint.cs
- EncoderParameter.cs
- XmlAnyElementAttribute.cs
- JsonDataContract.cs
- TextProviderWrapper.cs
- XamlStyleSerializer.cs
- FormViewPageEventArgs.cs
- FeatureSupport.cs
- TreeWalkHelper.cs
- CreateUserWizard.cs
- PropertyItemInternal.cs
- XmlSchemaSimpleTypeRestriction.cs
- ImageMapEventArgs.cs
- Helpers.cs
- LineGeometry.cs
- SoapCodeExporter.cs
- FixedSOMPageConstructor.cs
- TdsRecordBufferSetter.cs
- Logging.cs
- GrammarBuilderPhrase.cs
- ImageMap.cs
- ComAdminWrapper.cs
- BuildResultCache.cs
- ReadContentAsBinaryHelper.cs
- PropertyItem.cs
- WebPartDisplayModeEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- DataGridViewCellLinkedList.cs
- CipherData.cs
- FontInfo.cs
- ComponentFactoryHelpers.cs
- List.cs
- ActivationServices.cs
- BezierSegment.cs
- basevalidator.cs
- CompensationExtension.cs
- PropertyDescriptorGridEntry.cs
- NameScopePropertyAttribute.cs
- AuthorizationBehavior.cs
- TypeInitializationException.cs
- XamlToRtfWriter.cs
- MD5.cs
- DataGridViewRowStateChangedEventArgs.cs
- WorkflowViewStateService.cs
- RenderDataDrawingContext.cs
- EntryIndex.cs
- Variant.cs
- CultureInfoConverter.cs
- XmlSchemaAnnotated.cs
- CounterCreationDataCollection.cs
- ListViewHitTestInfo.cs
- ObjectDataSourceStatusEventArgs.cs
- RichTextBoxConstants.cs
- FragmentQueryProcessor.cs
- IsolatedStorageFilePermission.cs
- MouseGestureValueSerializer.cs
- TracedNativeMethods.cs
- MonthChangedEventArgs.cs
- CultureMapper.cs
- QueryTreeBuilder.cs
- SqlColumnizer.cs
- ConsoleEntryPoint.cs
- Int16AnimationBase.cs
- SrgsNameValueTag.cs
- SqlColumnizer.cs
- ThreadStaticAttribute.cs
- ExtensionWindowResizeGrip.cs
- DodSequenceMerge.cs
- ConditionCollection.cs
- Membership.cs
- IriParsingElement.cs
- CursorConverter.cs
- AssemblyHash.cs
- DataObjectSettingDataEventArgs.cs
- PagerSettings.cs
- ArithmeticException.cs
- RichTextBox.cs
- CodeEntryPointMethod.cs
- MultipartIdentifier.cs
- ActivityBindForm.cs
- Command.cs
- WebPartMenuStyle.cs
- HtmlImage.cs
- Win32Exception.cs
- PerformanceCountersBase.cs
- ZipIORawDataFileBlock.cs
- WebPartMenuStyle.cs
- DefaultSerializationProviderAttribute.cs
- filewebrequest.cs
- ForceCopyBuildProvider.cs
- SudsParser.cs
- HandlerFactoryWrapper.cs
- RijndaelManaged.cs
- WebPartEventArgs.cs
- KoreanCalendar.cs