Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectAnimationUsingKeyFrames.cs
- AttributeQuery.cs
- TrustLevel.cs
- SerializationException.cs
- XmlCDATASection.cs
- EtwTrace.cs
- RijndaelManagedTransform.cs
- XmlNodeReader.cs
- BaseTemplateParser.cs
- NegatedCellConstant.cs
- OdbcErrorCollection.cs
- FixedSOMContainer.cs
- UICuesEvent.cs
- EdgeProfileValidation.cs
- OdbcCommandBuilder.cs
- ArithmeticException.cs
- EastAsianLunisolarCalendar.cs
- DesignerDataTableBase.cs
- EncryptedData.cs
- PathSegmentCollection.cs
- Byte.cs
- TypeDependencyAttribute.cs
- StateDesigner.cs
- BufferModesCollection.cs
- MdiWindowListItemConverter.cs
- ContainerParaClient.cs
- DataStreams.cs
- RectIndependentAnimationStorage.cs
- DocComment.cs
- FunctionNode.cs
- DefaultEventAttribute.cs
- XmlElement.cs
- XamlSerializerUtil.cs
- EventLogReader.cs
- ArrayConverter.cs
- CachedFontFace.cs
- DrawingImage.cs
- DebugView.cs
- WindowsSolidBrush.cs
- DateTimeParse.cs
- ThicknessConverter.cs
- TreeViewCancelEvent.cs
- RotationValidation.cs
- OAVariantLib.cs
- MiniMapControl.xaml.cs
- SystemNetHelpers.cs
- XPathDocumentIterator.cs
- MarshalByValueComponent.cs
- NativeCppClassAttribute.cs
- WindowsFormsHelpers.cs
- SafeFileMapViewHandle.cs
- BindingWorker.cs
- BitmapEffectDrawing.cs
- TemplatePropertyEntry.cs
- InputElement.cs
- Wizard.cs
- BitArray.cs
- Pen.cs
- SlotInfo.cs
- CodeTypeMemberCollection.cs
- CollectionChangeEventArgs.cs
- X509SecurityToken.cs
- BehaviorEditorPart.cs
- ActivityStateRecord.cs
- ApplicationId.cs
- ClientUrlResolverWrapper.cs
- CheckedListBox.cs
- MediaTimeline.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- RuntimeWrappedException.cs
- CellLabel.cs
- RunInstallerAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- AddressingVersion.cs
- FilterQueryOptionExpression.cs
- DetailsViewUpdatedEventArgs.cs
- NetDataContractSerializer.cs
- LineGeometry.cs
- SHA1.cs
- XmlElementList.cs
- MemberInfoSerializationHolder.cs
- GenericRootAutomationPeer.cs
- ConversionHelper.cs
- XhtmlBasicLinkAdapter.cs
- IgnorePropertiesAttribute.cs
- LingerOption.cs
- Cursor.cs
- CodeDirectionExpression.cs
- EmissiveMaterial.cs
- TextSelectionProcessor.cs
- _DigestClient.cs
- OleDbCommandBuilder.cs
- CapiSymmetricAlgorithm.cs
- DialogResultConverter.cs
- XslAstAnalyzer.cs
- TemplateField.cs
- SqlError.cs
- ScrollItemProviderWrapper.cs
- CompilerTypeWithParams.cs
- PrintEvent.cs