Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CodeIterationStatement.cs
- TdsParserHelperClasses.cs
- HwndSourceParameters.cs
- XsltSettings.cs
- _NestedMultipleAsyncResult.cs
- TableItemProviderWrapper.cs
- UnsafeNativeMethods.cs
- Flattener.cs
- RemoteAsymmetricSignatureFormatter.cs
- ContentPlaceHolder.cs
- NativeMethods.cs
- BaseDataBoundControl.cs
- Logging.cs
- ArraySegment.cs
- PointAnimationUsingPath.cs
- TreeNodeStyleCollection.cs
- Char.cs
- SqlInternalConnectionTds.cs
- DataGridItemCollection.cs
- UriExt.cs
- XmlReflectionMember.cs
- BinaryUtilClasses.cs
- PassportAuthentication.cs
- DataGridSortCommandEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- GetPageNumberCompletedEventArgs.cs
- CompModSwitches.cs
- SecureEnvironment.cs
- XPathNavigatorReader.cs
- RepeaterItem.cs
- MainMenu.cs
- COM2Properties.cs
- TransformDescriptor.cs
- TextServicesLoader.cs
- PerformanceCounter.cs
- UIAgentMonitor.cs
- BindingParameterCollection.cs
- BaseProcessor.cs
- SafeFileMapViewHandle.cs
- PipeStream.cs
- OnOperation.cs
- ObjectStateFormatter.cs
- TemplateBuilder.cs
- StrokeDescriptor.cs
- XmlnsCompatibleWithAttribute.cs
- SystemTcpConnection.cs
- Decimal.cs
- HttpHandlerActionCollection.cs
- RegexTree.cs
- IntegerCollectionEditor.cs
- HwndSourceParameters.cs
- XmlMembersMapping.cs
- TheQuery.cs
- PropertyEmitterBase.cs
- DiscreteKeyFrames.cs
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- IPEndPoint.cs
- DataControlReferenceCollection.cs
- WriteableOnDemandStream.cs
- PeerApplicationLaunchInfo.cs
- ContextMarshalException.cs
- ISCIIEncoding.cs
- GeneralTransform3DGroup.cs
- Utils.cs
- XmlEntityReference.cs
- NameValueCollection.cs
- ByteConverter.cs
- SHA256.cs
- XmlSchemaSimpleContentExtension.cs
- ElementUtil.cs
- CompilerCollection.cs
- NativeMethods.cs
- BitStack.cs
- SqlPersistenceProviderFactory.cs
- WindowsIPAddress.cs
- X509UI.cs
- Process.cs
- ZipIOCentralDirectoryBlock.cs
- SoapAttributeOverrides.cs
- InputGestureCollection.cs
- SharedPerformanceCounter.cs
- BorderGapMaskConverter.cs
- TouchPoint.cs
- NetStream.cs
- TreeViewHitTestInfo.cs
- DynamicVirtualDiscoSearcher.cs
- SiteMapSection.cs
- ComplexTypeEmitter.cs
- ConfigurationManager.cs
- ImageIndexEditor.cs
- Range.cs
- IChannel.cs
- ElasticEase.cs
- StreamWriter.cs
- Span.cs
- DirectoryNotFoundException.cs
- NamespaceMapping.cs
- printdlgexmarshaler.cs
- AdCreatedEventArgs.cs
- TypeContext.cs