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
- COM2Enum.cs
- XmlAttributeHolder.cs
- ListViewSortEventArgs.cs
- ContractMapping.cs
- XmlIterators.cs
- TreeSet.cs
- MenuCommand.cs
- DecoderReplacementFallback.cs
- SelectionChangedEventArgs.cs
- DeploymentSectionCache.cs
- HtmlTable.cs
- ViewManager.cs
- CommandEventArgs.cs
- ListBindableAttribute.cs
- DataExpression.cs
- DbBuffer.cs
- MenuBase.cs
- MethodRental.cs
- FontSourceCollection.cs
- TdsEnums.cs
- RangeValuePattern.cs
- WebPartUserCapability.cs
- InvokeSchedule.cs
- MessageBodyMemberAttribute.cs
- FilteredReadOnlyMetadataCollection.cs
- BinaryObjectReader.cs
- Font.cs
- Config.cs
- Operators.cs
- FileVersionInfo.cs
- DragCompletedEventArgs.cs
- ApplicationException.cs
- XPathItem.cs
- SqlUDTStorage.cs
- StatusBar.cs
- SignedPkcs7.cs
- SystemIPv6InterfaceProperties.cs
- RegexReplacement.cs
- Terminate.cs
- SerializationInfo.cs
- UiaCoreProviderApi.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- IdnMapping.cs
- NotifyIcon.cs
- CodeVariableDeclarationStatement.cs
- RawKeyboardInputReport.cs
- Utility.cs
- SamlAuthenticationStatement.cs
- PackWebRequestFactory.cs
- XmlArrayItemAttributes.cs
- MatrixCamera.cs
- GraphicsPathIterator.cs
- FatalException.cs
- Constraint.cs
- Color.cs
- UniqueEventHelper.cs
- DataGridPagerStyle.cs
- DummyDataSource.cs
- IriParsingElement.cs
- MbpInfo.cs
- ShellProvider.cs
- SimpleType.cs
- COM2ColorConverter.cs
- ColorAnimation.cs
- ViewStateException.cs
- IntranetCredentialPolicy.cs
- ObjectDataProvider.cs
- GradientBrush.cs
- RectAnimation.cs
- JsonServiceDocumentSerializer.cs
- BamlResourceDeserializer.cs
- HtmlShim.cs
- RuleInfoComparer.cs
- CssClassPropertyAttribute.cs
- GlobalItem.cs
- DataGridViewComboBoxColumn.cs
- RoleService.cs
- WindowsAuthenticationModule.cs
- LinqDataSourceView.cs
- HtmlInputButton.cs
- Renderer.cs
- RIPEMD160Managed.cs
- SettingsPropertyValue.cs
- ChtmlSelectionListAdapter.cs
- TranslateTransform3D.cs
- FlowPanelDesigner.cs
- HitTestWithPointDrawingContextWalker.cs
- AnnotationComponentChooser.cs
- ListViewDeleteEventArgs.cs
- ValueQuery.cs
- IntSecurity.cs
- ProgressBar.cs
- StagingAreaInputItem.cs
- MergeFilterQuery.cs
- InkCanvasFeedbackAdorner.cs
- XomlCompilerError.cs
- DmlSqlGenerator.cs
- Point.cs
- UnionCodeGroup.cs
- IPAddressCollection.cs