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
- EndpointConfigContainer.cs
- MsmqHostedTransportManager.cs
- RequestCachingSection.cs
- PrimitiveCodeDomSerializer.cs
- AspCompat.cs
- ConfigurationValues.cs
- StrokeNodeOperations2.cs
- MouseEvent.cs
- ContentType.cs
- HoistedLocals.cs
- ImageMap.cs
- CodeChecksumPragma.cs
- ReverseComparer.cs
- _AutoWebProxyScriptWrapper.cs
- StateDesigner.Layouts.cs
- ButtonRenderer.cs
- JavaScriptObjectDeserializer.cs
- PrintDocument.cs
- TryExpression.cs
- ValidatedControlConverter.cs
- WebBrowserPermission.cs
- OutputCacheProfileCollection.cs
- SizeFConverter.cs
- WindowsFormsSynchronizationContext.cs
- LabelEditEvent.cs
- SaveFileDialog.cs
- TextEffect.cs
- mda.cs
- BasicCellRelation.cs
- EditorPart.cs
- DataGridViewRowCollection.cs
- ToolStripDropDown.cs
- Transactions.cs
- WebPartAddingEventArgs.cs
- ClientConfigPaths.cs
- DispatchOperation.cs
- baseaxisquery.cs
- DiscoveryEndpointElement.cs
- PanelDesigner.cs
- DataViewManager.cs
- OpenTypeLayout.cs
- OrderedDictionary.cs
- DBCSCodePageEncoding.cs
- coordinatorscratchpad.cs
- IPAddress.cs
- TableItemProviderWrapper.cs
- Source.cs
- CssClassPropertyAttribute.cs
- SelectionList.cs
- SetterBaseCollection.cs
- EmptyStringExpandableObjectConverter.cs
- DBAsyncResult.cs
- MobileUserControlDesigner.cs
- ControlAdapter.cs
- CodeAttributeDeclarationCollection.cs
- UniqueIdentifierService.cs
- SafeCoTaskMem.cs
- HttpConfigurationSystem.cs
- MarkupExtensionParser.cs
- NoneExcludedImageIndexConverter.cs
- EventLogPermissionEntry.cs
- ObjectListSelectEventArgs.cs
- UpdateTranslator.cs
- DeclarativeCatalogPart.cs
- APCustomTypeDescriptor.cs
- RSAPKCS1SignatureDeformatter.cs
- EditingMode.cs
- DbProviderFactoriesConfigurationHandler.cs
- UTF8Encoding.cs
- QuerySetOp.cs
- HttpCachePolicy.cs
- PenLineJoinValidation.cs
- ImageCollectionCodeDomSerializer.cs
- SystemResources.cs
- WebPartConnectionsCloseVerb.cs
- SoapInteropTypes.cs
- ECDsaCng.cs
- SizeChangedEventArgs.cs
- Deserializer.cs
- ScriptComponentDescriptor.cs
- XmlLinkedNode.cs
- QEncodedStream.cs
- _LocalDataStoreMgr.cs
- FactoryId.cs
- DataGridViewTextBoxEditingControl.cs
- RegistrySecurity.cs
- ManagementDateTime.cs
- Label.cs
- DetailsViewCommandEventArgs.cs
- X509UI.cs
- OverflowException.cs
- CookieParameter.cs
- HtmlFormAdapter.cs
- StylusLogic.cs
- DataGridViewComponentPropertyGridSite.cs
- Assembly.cs
- TableLayoutColumnStyleCollection.cs
- XmlSchemaSimpleType.cs
- BuildProvider.cs
- rsa.cs