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
- ToolStripControlHost.cs
- MediaElement.cs
- CurrentChangingEventArgs.cs
- ExpressionPrefixAttribute.cs
- COM2ColorConverter.cs
- WarningException.cs
- SerializationEventsCache.cs
- DSACryptoServiceProvider.cs
- EpmCustomContentSerializer.cs
- TabPanel.cs
- SinglePageViewer.cs
- CompilationRelaxations.cs
- XmlMapping.cs
- SectionRecord.cs
- TextParagraph.cs
- DelegatingConfigHost.cs
- SystemTcpConnection.cs
- LineServices.cs
- BaseAsyncResult.cs
- StorageComplexTypeMapping.cs
- DefaultValidator.cs
- Stroke2.cs
- HtmlInputPassword.cs
- X509SecurityTokenParameters.cs
- MarkupCompilePass2.cs
- CssClassPropertyAttribute.cs
- X509Certificate.cs
- SystemIPGlobalProperties.cs
- XhtmlConformanceSection.cs
- LiteralTextParser.cs
- MenuItemStyle.cs
- ListenerSessionConnection.cs
- COM2Enum.cs
- UniformGrid.cs
- SiteMembershipCondition.cs
- PeerHopCountAttribute.cs
- SetterTriggerConditionValueConverter.cs
- XmlQualifiedName.cs
- _ListenerRequestStream.cs
- SqlDataReaderSmi.cs
- ResourceExpressionBuilder.cs
- StreamGeometry.cs
- XPathConvert.cs
- TextRangeBase.cs
- ConfigurationSettings.cs
- XmlSortKey.cs
- DataGridViewSelectedRowCollection.cs
- PackagePart.cs
- UxThemeWrapper.cs
- XsltOutput.cs
- MessageContractAttribute.cs
- DependentList.cs
- ImmutableObjectAttribute.cs
- MappingSource.cs
- GifBitmapEncoder.cs
- SafeBitVector32.cs
- PixelShader.cs
- Models.cs
- SqlInternalConnectionTds.cs
- HealthMonitoringSectionHelper.cs
- httpserverutility.cs
- ToolStripPanelRow.cs
- HttpCookieCollection.cs
- ResXBuildProvider.cs
- CreationContext.cs
- AsmxEndpointPickerExtension.cs
- Parameter.cs
- IntegrationExceptionEventArgs.cs
- BinaryMessageEncoder.cs
- UnsafeNativeMethods.cs
- ReferentialConstraint.cs
- TemplateBaseAction.cs
- ListItem.cs
- CompositeScriptReferenceEventArgs.cs
- DataListDesigner.cs
- StrokeNode.cs
- FormsAuthentication.cs
- RequestDescription.cs
- DbRetry.cs
- ValidationRuleCollection.cs
- LinqDataSourceContextEventArgs.cs
- DbSourceCommand.cs
- Parameter.cs
- CodeNamespace.cs
- SchemaTableOptionalColumn.cs
- TextBox.cs
- SiteMapNodeItem.cs
- ParagraphResult.cs
- ClientTarget.cs
- VScrollBar.cs
- LineMetrics.cs
- RelationshipNavigation.cs
- DeploymentSectionCache.cs
- NamespaceInfo.cs
- SplitterCancelEvent.cs
- Update.cs
- PreloadedPackages.cs
- EntityViewGenerationAttribute.cs
- UpdatePanel.cs
- DrawingContextWalker.cs