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
- CodeTypeParameterCollection.cs
- TextEditorCharacters.cs
- MessageQueueCriteria.cs
- EntityDataSource.cs
- WmpBitmapDecoder.cs
- Ops.cs
- TimeZone.cs
- RewritingValidator.cs
- ProvidersHelper.cs
- UnsafeNativeMethods.cs
- SQLBinary.cs
- FontFamily.cs
- ToolboxBitmapAttribute.cs
- BrowserInteropHelper.cs
- BoolExpression.cs
- FolderBrowserDialog.cs
- ServiceOperationInfoTypeConverter.cs
- JsonClassDataContract.cs
- SystemIPInterfaceProperties.cs
- FileVersionInfo.cs
- ZipIOExtraField.cs
- ObjectDataProvider.cs
- JsonClassDataContract.cs
- PermissionSetTriple.cs
- XmlSchemaSimpleTypeUnion.cs
- CodePrimitiveExpression.cs
- DBDataPermissionAttribute.cs
- ViewGenerator.cs
- Pick.cs
- ObjectIDGenerator.cs
- BaseValidatorDesigner.cs
- Model3DGroup.cs
- DataSourceHelper.cs
- XmlDataDocument.cs
- TypeConverterValueSerializer.cs
- Metafile.cs
- DoubleStorage.cs
- WebBrowser.cs
- StringWriter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- OutputCacheSettings.cs
- GridViewHeaderRowPresenter.cs
- ConfigurationManagerInternal.cs
- ParserOptions.cs
- Soap.cs
- FrameworkRichTextComposition.cs
- InputLanguageEventArgs.cs
- AuthenticationModulesSection.cs
- CatalogPart.cs
- NativeMethods.cs
- InputProviderSite.cs
- HttpRuntimeSection.cs
- DataTableReader.cs
- ConfigurationValidatorAttribute.cs
- DateTimeStorage.cs
- LightweightCodeGenerator.cs
- DataGridTextBox.cs
- HwndSourceParameters.cs
- DataSourceIDConverter.cs
- OleDbError.cs
- BamlBinaryReader.cs
- ContainerActivationHelper.cs
- LineBreakRecord.cs
- IndexOutOfRangeException.cs
- SmtpDateTime.cs
- Timeline.cs
- Calendar.cs
- ChildrenQuery.cs
- RoutingTable.cs
- GenericTypeParameterBuilder.cs
- ServiceSettingsResponseInfo.cs
- ConfigurationManagerHelperFactory.cs
- CodeAccessPermission.cs
- BaseCodePageEncoding.cs
- SystemWebSectionGroup.cs
- EditingCoordinator.cs
- FormDocumentDesigner.cs
- PropertyInformationCollection.cs
- PenCursorManager.cs
- Visual.cs
- ComEventsHelper.cs
- PingReply.cs
- MethodCallTranslator.cs
- BufferBuilder.cs
- BindableAttribute.cs
- DockingAttribute.cs
- HScrollBar.cs
- DictionaryTraceRecord.cs
- PersonalizationProviderHelper.cs
- Metafile.cs
- DataSetUtil.cs
- Partitioner.cs
- DispatcherHooks.cs
- XhtmlConformanceSection.cs
- SafeEventHandle.cs
- xmlglyphRunInfo.cs
- Utils.cs
- SignatureHelper.cs
- XmlSchemaComplexContentExtension.cs
- SortQuery.cs