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
- FixedPageStructure.cs
- ScrollProperties.cs
- RawStylusActions.cs
- JavaScriptObjectDeserializer.cs
- DataGridClipboardCellContent.cs
- CodeExpressionStatement.cs
- GeneralTransform3D.cs
- WorkflowIdleBehavior.cs
- ScopeCollection.cs
- StreamFormatter.cs
- AutomationPatternInfo.cs
- ComponentChangingEvent.cs
- HyperLinkColumn.cs
- FamilyCollection.cs
- Encoding.cs
- CompiledRegexRunner.cs
- __ConsoleStream.cs
- Mutex.cs
- TaskHelper.cs
- BinHexDecoder.cs
- WebDisplayNameAttribute.cs
- GroupedContextMenuStrip.cs
- FormatConvertedBitmap.cs
- ADRoleFactoryConfiguration.cs
- Dynamic.cs
- CookieHandler.cs
- GrammarBuilderRuleRef.cs
- RuleRefElement.cs
- TempEnvironment.cs
- DefaultTextStoreTextComposition.cs
- ProgressBar.cs
- ParamArrayAttribute.cs
- Shape.cs
- UnmanagedMemoryStreamWrapper.cs
- SourceLocationProvider.cs
- ProviderConnectionPoint.cs
- SystemResources.cs
- XmlHierarchicalEnumerable.cs
- QueryContinueDragEvent.cs
- SelectedCellsChangedEventArgs.cs
- EventSetter.cs
- Tokenizer.cs
- TextServicesCompartmentEventSink.cs
- DataSourceCache.cs
- CheckBoxAutomationPeer.cs
- PageCodeDomTreeGenerator.cs
- SQLBytesStorage.cs
- RegexCharClass.cs
- HWStack.cs
- TargetException.cs
- ArrayList.cs
- UrlPropertyAttribute.cs
- SqlProvider.cs
- LowerCaseStringConverter.cs
- FixedSOMTable.cs
- ReferenceConverter.cs
- ThreadExceptionEvent.cs
- ScrollEventArgs.cs
- SapiInterop.cs
- PointAnimationUsingPath.cs
- BuilderElements.cs
- Point3D.cs
- Pens.cs
- IntSecurity.cs
- BitmapVisualManager.cs
- TextControlDesigner.cs
- SqlDelegatedTransaction.cs
- CallContext.cs
- OutputScopeManager.cs
- ShaderEffect.cs
- InvokeMethodActivity.cs
- ClientSponsor.cs
- SmtpNtlmAuthenticationModule.cs
- NegatedConstant.cs
- ToolStripGripRenderEventArgs.cs
- JournalNavigationScope.cs
- WindowsIdentity.cs
- ColumnMap.cs
- MULTI_QI.cs
- RegistryConfigurationProvider.cs
- FrugalMap.cs
- AttributeTableBuilder.cs
- CompilerWrapper.cs
- ExpressionList.cs
- StorageMappingItemLoader.cs
- listitem.cs
- CorrelationService.cs
- StructuralComparisons.cs
- BinaryUtilClasses.cs
- PropertyChangingEventArgs.cs
- RegisteredDisposeScript.cs
- ConstrainedDataObject.cs
- DataGridRowHeader.cs
- PropertyValueUIItem.cs
- BStrWrapper.cs
- HttpsChannelListener.cs
- FormView.cs
- SmtpReplyReaderFactory.cs
- FileAuthorizationModule.cs
- DataReaderContainer.cs