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
- XmlSchemaComplexContent.cs
- smtpconnection.cs
- Freezable.cs
- CounterSample.cs
- MembershipUser.cs
- FocusManager.cs
- TypeLibConverter.cs
- ToolboxComponentsCreatingEventArgs.cs
- HttpMethodAttribute.cs
- BamlLocalizationDictionary.cs
- DrawingAttributeSerializer.cs
- BorderGapMaskConverter.cs
- ImportContext.cs
- HealthMonitoringSection.cs
- IndexerHelper.cs
- InputMethodStateTypeInfo.cs
- DataViewListener.cs
- _ChunkParse.cs
- Polyline.cs
- NavigationProperty.cs
- ZipIOExtraFieldElement.cs
- WindowsGraphics.cs
- CodePageUtils.cs
- Schema.cs
- RuleSet.cs
- CommandHelpers.cs
- AssociatedControlConverter.cs
- ExpandCollapseProviderWrapper.cs
- XmlSchemaRedefine.cs
- AffineTransform3D.cs
- FixedBufferAttribute.cs
- Transform3DCollection.cs
- XPathDocumentIterator.cs
- SystemResourceKey.cs
- OnOperation.cs
- DocumentGridContextMenu.cs
- URLString.cs
- XmlnsPrefixAttribute.cs
- ContextMenu.cs
- FormViewPageEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- MessageQueueKey.cs
- TextureBrush.cs
- LoadWorkflowCommand.cs
- TextRangeEditTables.cs
- ZipIOExtraFieldZip64Element.cs
- DataGridViewSelectedCellCollection.cs
- AdCreatedEventArgs.cs
- ForEach.cs
- GlobalizationSection.cs
- TimeoutConverter.cs
- TrackBarDesigner.cs
- IdnMapping.cs
- CounterCreationDataCollection.cs
- AdRotatorDesigner.cs
- JavaScriptObjectDeserializer.cs
- RectangleHotSpot.cs
- BezierSegment.cs
- SizeChangedEventArgs.cs
- ProcessInfo.cs
- AdRotator.cs
- AsyncResult.cs
- CacheVirtualItemsEvent.cs
- MyContact.cs
- ADMembershipUser.cs
- XslUrlEditor.cs
- MutexSecurity.cs
- AspNetRouteServiceHttpHandler.cs
- ScriptManager.cs
- HttpListenerResponse.cs
- UIElement.cs
- GlobalizationAssembly.cs
- GlyphingCache.cs
- Matrix3D.cs
- ActiveXHost.cs
- RegexMatch.cs
- SynchronizedMessageSource.cs
- RepeatButtonAutomationPeer.cs
- SemaphoreSlim.cs
- SQLResource.cs
- KeyNotFoundException.cs
- SafePEFileHandle.cs
- MatcherBuilder.cs
- HtmlContainerControl.cs
- Parser.cs
- _ProxyRegBlob.cs
- EntityAdapter.cs
- TypeSystem.cs
- DataGridRow.cs
- RootProfilePropertySettingsCollection.cs
- LocationUpdates.cs
- TextEmbeddedObject.cs
- ExpressionEditorAttribute.cs
- InstanceNotReadyException.cs
- WindowCollection.cs
- BaseTemplateBuildProvider.cs
- ReadOnlyDictionary.cs
- WebPartUtil.cs
- TableRowCollection.cs
- PropertyChangedEventArgs.cs