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
- ProtocolViolationException.cs
- EntryIndex.cs
- SizeAnimationClockResource.cs
- StringConcat.cs
- BufferedGenericXmlSecurityToken.cs
- ElementAction.cs
- XsdDataContractImporter.cs
- VectorCollectionConverter.cs
- InvalidFilterCriteriaException.cs
- RuntimeEnvironment.cs
- SiteMapHierarchicalDataSourceView.cs
- XmlQueryTypeFactory.cs
- OleDbTransaction.cs
- ImmComposition.cs
- MimeXmlReflector.cs
- FontDifferentiator.cs
- IndexedString.cs
- BuilderElements.cs
- WebHeaderCollection.cs
- Task.cs
- AnnotationAdorner.cs
- CssTextWriter.cs
- EditorPart.cs
- JapaneseCalendar.cs
- RegexRunner.cs
- String.cs
- MergeFilterQuery.cs
- InternalPermissions.cs
- AutoResizedEvent.cs
- HostedImpersonationContext.cs
- XmlWriter.cs
- BroadcastEventHelper.cs
- ConfigurationConverterBase.cs
- SerializationEventsCache.cs
- FontUnit.cs
- TemplatePartAttribute.cs
- PropertyEmitter.cs
- EndpointBehaviorElementCollection.cs
- FileVersion.cs
- FixedSchema.cs
- CreateUserWizardStep.cs
- DataGridViewDesigner.cs
- ListDesigner.cs
- LabelExpression.cs
- SetterBaseCollection.cs
- GridViewItemAutomationPeer.cs
- ArrayWithOffset.cs
- AmbientLight.cs
- SqlFactory.cs
- QuerySelectOp.cs
- UserPreferenceChangedEventArgs.cs
- TriggerCollection.cs
- Sql8ExpressionRewriter.cs
- diagnosticsswitches.cs
- ContextStaticAttribute.cs
- Resources.Designer.cs
- nulltextcontainer.cs
- CompiledRegexRunnerFactory.cs
- TableLayoutPanelResizeGlyph.cs
- _emptywebproxy.cs
- PointConverter.cs
- BaseTemplateBuildProvider.cs
- DataSvcMapFile.cs
- GridProviderWrapper.cs
- FixUpCollection.cs
- ReferencedCollectionType.cs
- QuaternionAnimation.cs
- LoginName.cs
- EdgeProfileValidation.cs
- FileStream.cs
- KeyMatchBuilder.cs
- SelectionRange.cs
- AlternateViewCollection.cs
- SessionStateSection.cs
- DataGridViewToolTip.cs
- CryptoStream.cs
- ArglessEventHandlerProxy.cs
- TemplateComponentConnector.cs
- XmlMtomWriter.cs
- TimelineCollection.cs
- FixedHyperLink.cs
- PriorityBindingExpression.cs
- XappLauncher.cs
- EventMappingSettingsCollection.cs
- ToolStripContainer.cs
- ListBox.cs
- SHA512Managed.cs
- ToolStripRenderEventArgs.cs
- SingleConverter.cs
- MeshGeometry3D.cs
- Viewport2DVisual3D.cs
- validation.cs
- PropertyGridView.cs
- GatewayIPAddressInformationCollection.cs
- DataGridCaption.cs
- SqlFactory.cs
- TextServicesCompartment.cs
- DataGridViewTextBoxColumn.cs
- SerializationEventsCache.cs
- FormView.cs