Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ThreadAbortException.cs
- ConnectionManagementElementCollection.cs
- DocumentApplicationDocumentViewer.cs
- XmlILIndex.cs
- X509Extension.cs
- PeerToPeerException.cs
- ProvidersHelper.cs
- PageCopyCount.cs
- EntityContainerRelationshipSetEnd.cs
- WpfMemberInvoker.cs
- OdbcEnvironment.cs
- SecurityTokenResolver.cs
- List.cs
- OleDbException.cs
- CultureTable.cs
- ClusterRegistryConfigurationProvider.cs
- EdmComplexTypeAttribute.cs
- EditorZone.cs
- DatatypeImplementation.cs
- Expander.cs
- oledbconnectionstring.cs
- Main.cs
- TemplateAction.cs
- ListViewInsertEventArgs.cs
- SelectionWordBreaker.cs
- PenLineJoinValidation.cs
- SamlAuthenticationClaimResource.cs
- TableCell.cs
- PageAsyncTaskManager.cs
- HtmlInputButton.cs
- ClientApiGenerator.cs
- PackageRelationship.cs
- FixedDSBuilder.cs
- MemberInfoSerializationHolder.cs
- X509Chain.cs
- TargetException.cs
- JsonUriDataContract.cs
- WsdlBuildProvider.cs
- precedingquery.cs
- ValidationSummary.cs
- PasswordRecovery.cs
- StringToken.cs
- Pen.cs
- ImplicitInputBrush.cs
- _NtlmClient.cs
- GeometryModel3D.cs
- ImmutablePropertyDescriptorGridEntry.cs
- XMLUtil.cs
- ClrProviderManifest.cs
- CompoundFileDeflateTransform.cs
- BitConverter.cs
- LockedBorderGlyph.cs
- ForwardPositionQuery.cs
- BrowserCapabilitiesCompiler.cs
- InfoCardProofToken.cs
- __FastResourceComparer.cs
- IProvider.cs
- XmlDownloadManager.cs
- ToolStripContextMenu.cs
- Brushes.cs
- AsynchronousChannel.cs
- InvokerUtil.cs
- EntityCommand.cs
- PeerApplicationLaunchInfo.cs
- LinqExpressionNormalizer.cs
- HeaderedItemsControl.cs
- BorderGapMaskConverter.cs
- ResourceDescriptionAttribute.cs
- BamlTreeNode.cs
- SqlProviderManifest.cs
- BamlTreeUpdater.cs
- __Filters.cs
- WebServiceData.cs
- SystemWebSectionGroup.cs
- InstallHelper.cs
- BasicHttpBindingCollectionElement.cs
- InkCanvasSelectionAdorner.cs
- TypeDescriptionProvider.cs
- BitArray.cs
- MouseGestureValueSerializer.cs
- WebServiceEnumData.cs
- LineServices.cs
- DirectoryInfo.cs
- Point3DAnimationUsingKeyFrames.cs
- SiteMembershipCondition.cs
- ExtensionSimplifierMarkupObject.cs
- XXXInfos.cs
- CompilationRelaxations.cs
- KeyGesture.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- WindowsListViewScroll.cs
- LocatorPartList.cs
- KeyGestureConverter.cs
- PerformanceCounterPermissionEntry.cs
- ServiceBehaviorAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- ContextStack.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MulticastDelegate.cs
- HostingMessageProperty.cs