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
- OpenTypeMethods.cs
- FirstMatchCodeGroup.cs
- DataRowView.cs
- InvalidCommandTreeException.cs
- ZipIOExtraField.cs
- SHA1Managed.cs
- ListViewInsertEventArgs.cs
- EncryptedHeader.cs
- objectresult_tresulttype.cs
- XmlSchemaAnnotated.cs
- MethodBuilderInstantiation.cs
- ClassHandlersStore.cs
- prompt.cs
- PolyQuadraticBezierSegment.cs
- ZipIOExtraFieldElement.cs
- HexParser.cs
- ConfigurationElement.cs
- SiteMapProvider.cs
- TextDecorations.cs
- ActivityTypeDesigner.xaml.cs
- UpdateManifestForBrowserApplication.cs
- ToolboxItemFilterAttribute.cs
- PerformanceCounterPermissionEntry.cs
- BinaryFormatterSinks.cs
- ThreadStartException.cs
- FontSizeConverter.cs
- VirtualPathProvider.cs
- WebEvents.cs
- AspNetHostingPermission.cs
- PagerSettings.cs
- CodeTypeMemberCollection.cs
- SqlConnection.cs
- SpeechRecognitionEngine.cs
- SystemWebExtensionsSectionGroup.cs
- XmlNodeChangedEventArgs.cs
- StringToken.cs
- CustomCategoryAttribute.cs
- Marshal.cs
- StackBuilderSink.cs
- ConfigXmlCDataSection.cs
- MemberHolder.cs
- BamlRecords.cs
- MouseWheelEventArgs.cs
- SystemNetworkInterface.cs
- SignatureSummaryDialog.cs
- BooleanFunctions.cs
- BamlTreeNode.cs
- xsdvalidator.cs
- AdornerHitTestResult.cs
- DataGridViewDataConnection.cs
- EventMappingSettings.cs
- LocalizabilityAttribute.cs
- SafePEFileHandle.cs
- Screen.cs
- SignatureDescription.cs
- DataSourceCacheDurationConverter.cs
- WebBrowserUriTypeConverter.cs
- DragDrop.cs
- HttpDictionary.cs
- TextCharacters.cs
- MessageHeaderInfoTraceRecord.cs
- MLangCodePageEncoding.cs
- Parameter.cs
- RuleSettingsCollection.cs
- DataGridRowHeaderAutomationPeer.cs
- Matrix3DStack.cs
- ComboBoxRenderer.cs
- ExceptionValidationRule.cs
- SessionStateItemCollection.cs
- AnchoredBlock.cs
- XmlSchemaType.cs
- SqlAliasesReferenced.cs
- Wizard.cs
- TextSelection.cs
- WebPartCatalogAddVerb.cs
- SqlInternalConnectionSmi.cs
- WindowsRegion.cs
- CommandConverter.cs
- TemplateControl.cs
- Choices.cs
- XmlObjectSerializerContext.cs
- QilExpression.cs
- PropertyInfoSet.cs
- XmlElementAttributes.cs
- DataGridItemEventArgs.cs
- DataGridViewComboBoxCell.cs
- ListItemConverter.cs
- QueryCursorEventArgs.cs
- SqlWebEventProvider.cs
- TraceListener.cs
- UserThread.cs
- MetaModel.cs
- FrameworkObject.cs
- SessionIDManager.cs
- Char.cs
- UnSafeCharBuffer.cs
- CodeAttributeArgumentCollection.cs
- SmtpCommands.cs
- ReflectEventDescriptor.cs
- _ChunkParse.cs