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
- IDReferencePropertyAttribute.cs
- QuaternionConverter.cs
- FixedLineResult.cs
- UserControl.cs
- ProfileProvider.cs
- _RequestLifetimeSetter.cs
- FixedSOMSemanticBox.cs
- FormatterConverter.cs
- XslAst.cs
- InputMethodStateTypeInfo.cs
- FirstMatchCodeGroup.cs
- RegisteredHiddenField.cs
- PersonalizationProviderCollection.cs
- SerializationInfo.cs
- PropertyTabChangedEvent.cs
- TableLayoutStyleCollection.cs
- TypeBuilderInstantiation.cs
- FileDialogPermission.cs
- HotSpotCollection.cs
- TextEditorParagraphs.cs
- QueryCacheManager.cs
- RefreshEventArgs.cs
- Directory.cs
- TextParagraphView.cs
- BackgroundWorker.cs
- IndividualDeviceConfig.cs
- XPathScanner.cs
- TextTreeRootTextBlock.cs
- PolicyValidator.cs
- UpdateCompiler.cs
- ObjectStateFormatter.cs
- CodeRemoveEventStatement.cs
- ViewManager.cs
- RenderContext.cs
- ContentPathSegment.cs
- SymbolType.cs
- GeometryConverter.cs
- DataSourceControlBuilder.cs
- SByte.cs
- DoubleKeyFrameCollection.cs
- CodeGotoStatement.cs
- ConfigXmlElement.cs
- EntityDataSourceSelectedEventArgs.cs
- OneOf.cs
- TextServicesLoader.cs
- TextTreeDeleteContentUndoUnit.cs
- Bits.cs
- EncoderExceptionFallback.cs
- DataIdProcessor.cs
- ProtocolException.cs
- DbReferenceCollection.cs
- RelatedEnd.cs
- DbParameterHelper.cs
- XmlHierarchicalEnumerable.cs
- UserMapPath.cs
- WebPartEditorCancelVerb.cs
- InputBuffer.cs
- NameValueCollection.cs
- MediaElement.cs
- BrowserCapabilitiesCompiler.cs
- EventLogPermission.cs
- WebBrowserUriTypeConverter.cs
- SafeFileHandle.cs
- ZipIOLocalFileDataDescriptor.cs
- FolderNameEditor.cs
- EditorPart.cs
- autovalidator.cs
- WebException.cs
- StylusEditingBehavior.cs
- TreeViewTemplateSelector.cs
- GridItemProviderWrapper.cs
- WinInetCache.cs
- DataGridTablesFactory.cs
- ProcessModuleCollection.cs
- XmlNamespaceManager.cs
- EmissiveMaterial.cs
- MetadataFile.cs
- ExpressionBuilderContext.cs
- SmtpNtlmAuthenticationModule.cs
- prompt.cs
- BinHexEncoder.cs
- FontSizeConverter.cs
- SecureUICommand.cs
- FilterQuery.cs
- GetLedgerEntryForRecipientRequest.cs
- TextEffectCollection.cs
- StatusBarAutomationPeer.cs
- StructureChangedEventArgs.cs
- OrderedDictionaryStateHelper.cs
- ClonableStack.cs
- GlobalizationAssembly.cs
- BackStopAuthenticationModule.cs
- ContextBase.cs
- ApplicationInfo.cs
- LabelDesigner.cs
- IgnoreFlushAndCloseStream.cs
- GradientStop.cs
- TrackPoint.cs
- TreeNodeCollection.cs
- ComponentResourceManager.cs