Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / InsufficientMemoryException.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityParameterCollection.cs
- Grid.cs
- ComboBoxItem.cs
- Quad.cs
- FunctionQuery.cs
- XmlCountingReader.cs
- StructuredCompositeActivityDesigner.cs
- ProcessThreadCollection.cs
- HtmlAnchor.cs
- CodeVariableReferenceExpression.cs
- ApplicationException.cs
- TextParaLineResult.cs
- EncodingNLS.cs
- XmlAnyAttributeAttribute.cs
- XamlHostingConfiguration.cs
- CodeNamespaceCollection.cs
- DbConnectionStringCommon.cs
- AnnotationMap.cs
- DataObjectAttribute.cs
- CapabilitiesSection.cs
- AsyncOperationManager.cs
- ListSourceHelper.cs
- SourceElementsCollection.cs
- ProfileSettings.cs
- UnsafeNativeMethods.cs
- MessageEncodingBindingElement.cs
- DataServicePagingProviderWrapper.cs
- DataGridViewSelectedColumnCollection.cs
- Popup.cs
- ReadWriteObjectLock.cs
- SoapIgnoreAttribute.cs
- SystemResourceHost.cs
- DictionaryBase.cs
- EntityDataSourceMemberPath.cs
- EntityProviderFactory.cs
- CancelEventArgs.cs
- WsatProxy.cs
- GenericsInstances.cs
- WorkflowLayouts.cs
- ExpressionBinding.cs
- WaitHandleCannotBeOpenedException.cs
- PathGeometry.cs
- Ref.cs
- ExeContext.cs
- TreeViewEvent.cs
- Misc.cs
- ValidationSettings.cs
- SetStateDesigner.cs
- TypedTableBaseExtensions.cs
- DataControlFieldHeaderCell.cs
- LineMetrics.cs
- UnsafeNativeMethodsPenimc.cs
- StringComparer.cs
- ScaleTransform.cs
- GCHandleCookieTable.cs
- DoneReceivingAsyncResult.cs
- DataListGeneralPage.cs
- DatatypeImplementation.cs
- _HeaderInfoTable.cs
- ButtonRenderer.cs
- StringResourceManager.cs
- LogStream.cs
- EntityClientCacheEntry.cs
- SoapConverter.cs
- FunctionCommandText.cs
- ZipIOExtraFieldElement.cs
- XmlAttributeCollection.cs
- OneOfConst.cs
- BooleanFunctions.cs
- HttpHandlersSection.cs
- X509IssuerSerialKeyIdentifierClause.cs
- GenericTypeParameterBuilder.cs
- TraceHandlerErrorFormatter.cs
- DesignerActionList.cs
- CalendarAutoFormatDialog.cs
- JsonCollectionDataContract.cs
- Point3DCollection.cs
- Transform3D.cs
- URLMembershipCondition.cs
- AmbientLight.cs
- Timer.cs
- NumberFormatInfo.cs
- PropertyInfoSet.cs
- ConcurrentBag.cs
- PLINQETWProvider.cs
- EntitySetBase.cs
- BaseTemplateParser.cs
- NeutralResourcesLanguageAttribute.cs
- XmlnsCache.cs
- ProfileEventArgs.cs
- VectorKeyFrameCollection.cs
- ReservationNotFoundException.cs
- SqlXmlStorage.cs
- PartialList.cs
- IndexingContentUnit.cs
- TabControlEvent.cs
- BamlResourceSerializer.cs
- HttpApplication.cs
- CodeDirectoryCompiler.cs
- StrongNameUtility.cs