Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TypeLibConverter.cs
- BuildResult.cs
- ProfileProvider.cs
- MexHttpBindingElement.cs
- DesigntimeLicenseContextSerializer.cs
- ValidatingPropertiesEventArgs.cs
- SweepDirectionValidation.cs
- IOThreadScheduler.cs
- SiteMapHierarchicalDataSourceView.cs
- ElementHostAutomationPeer.cs
- HttpPostedFileWrapper.cs
- FloatUtil.cs
- TrustManager.cs
- HostedNamedPipeTransportManager.cs
- DbConnectionPoolGroup.cs
- ObjectDataSourceDisposingEventArgs.cs
- AlignmentYValidation.cs
- UInt32Converter.cs
- BoundingRectTracker.cs
- AppDomainManager.cs
- CharacterHit.cs
- _CacheStreams.cs
- InstalledVoice.cs
- DynamicDataResources.Designer.cs
- Contracts.cs
- CharacterMetrics.cs
- LocalizabilityAttribute.cs
- SqlMethodAttribute.cs
- RectangleConverter.cs
- DataGridViewColumnCollection.cs
- AuthenticatedStream.cs
- PositiveTimeSpanValidatorAttribute.cs
- DateTimeUtil.cs
- SynchronizedRandom.cs
- PeerContact.cs
- ConnectionStringsExpressionBuilder.cs
- WebPartVerbCollection.cs
- RepeaterItemEventArgs.cs
- DataConnectionHelper.cs
- LogicalTreeHelper.cs
- ContainerUIElement3D.cs
- TypeResolver.cs
- DefaultValueConverter.cs
- RelationshipSet.cs
- XpsSerializationManagerAsync.cs
- OdbcUtils.cs
- dataprotectionpermission.cs
- PersonalizationProviderCollection.cs
- util.cs
- Internal.cs
- FastEncoder.cs
- FlowLayoutSettings.cs
- DataRowView.cs
- UnicastIPAddressInformationCollection.cs
- ListViewItem.cs
- FontDriver.cs
- X509Utils.cs
- ArrayHelper.cs
- DesignerAutoFormatCollection.cs
- DataGridTextBoxColumn.cs
- DoubleKeyFrameCollection.cs
- UpDownBaseDesigner.cs
- SystemWebCachingSectionGroup.cs
- ThousandthOfEmRealPoints.cs
- FilterQuery.cs
- X509Utils.cs
- TransformationRules.cs
- TypeElement.cs
- ObjectDataSourceEventArgs.cs
- CallSiteHelpers.cs
- XmlCodeExporter.cs
- WebAdminConfigurationHelper.cs
- TypeDefinition.cs
- CqlBlock.cs
- LeftCellWrapper.cs
- SQLDecimal.cs
- CreateUserWizard.cs
- AbandonedMutexException.cs
- Types.cs
- thaishape.cs
- ScrollItemProviderWrapper.cs
- XmlDocument.cs
- Stylus.cs
- DuplicateContext.cs
- SHA1CryptoServiceProvider.cs
- HttpPostServerProtocol.cs
- UIElementParaClient.cs
- StaticExtension.cs
- HasCopySemanticsAttribute.cs
- TextWriter.cs
- SynthesizerStateChangedEventArgs.cs
- SimpleMailWebEventProvider.cs
- SspiHelper.cs
- AvTrace.cs
- StreamMarshaler.cs
- FileInfo.cs
- BitmapImage.cs
- SqlDataAdapter.cs
- FixedSOMPageElement.cs
- LinearGradientBrush.cs